Report Viewer does not hide Excel Export Button

Stimulsoft Reports.BLAZOR discussion
Post Reply
TGoertler
Posts: 24
Joined: Wed Aug 25, 2010 9:16 am
Location: Gundelsheim/Germany

Report Viewer does not hide Excel Export Button

Post by TGoertler »

Hi Stimulsoft Team,

I try to hide the export to excel button from the save report dialog of the blazor report viewer.
When using something like that

Code: Select all

Options = new StiBlazorViewerOptions();
Options.Exports.ShowExportToExcel = false;
Options.Exports.ShowExportToExcel2007 = false;
the button is still visible. I tried all other options and it worked. Is this a bug or is there another method hiding this button?

Regards,
Thomas
Lech Kulikowski
Posts: 6244
Joined: Tue Mar 20, 2018 5:34 am

Re: Report Viewer does not hide Excel Export Button

Post by Lech Kulikowski »

Hello,

Please add the following option:
Options.Exports.ShowExportToExcelXml = false;

Thank you.
Attachments
Screenshot 2023-04-13 224955.png
Screenshot 2023-04-13 224955.png (315.01 KiB) Viewed 8700 times
TGoertler
Posts: 24
Joined: Wed Aug 25, 2010 9:16 am
Location: Gundelsheim/Germany

Re: Report Viewer does not hide Excel Export Button

Post by TGoertler »

Hello,

thank you!! That's the option I was missing!
Now it works perfectly.

Regards,
Thomas
Lech Kulikowski
Posts: 6244
Joined: Tue Mar 20, 2018 5:34 am

Re: Report Viewer does not hide Excel Export Button

Post by Lech Kulikowski »

Hello Thomas,

You are welcome.
Post Reply