Stop Export to Excel from Report viewer

Stimulsoft Reports.NET discussion
Post Reply
mihiri1
Posts: 12
Joined: Tue May 15, 2012 3:00 am
Location: Brisbane, QLD

Stop Export to Excel from Report viewer

Post by mihiri1 »

Hi,

I want to stop users from exporting the report to any Excel formats.
Is that Possible?
If so what should be the approach?
I use SS 2011.1.919

Thanks
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Stop Export to Excel from Report viewer

Post by HighAley »

Hello.

You could use next options to disable Excel exports:

Code: Select all

StiOptions.Viewer.Windows.Exports.ShowExcel = false;
StiOptions.Viewer.Windows.Exports.ShowExcel2007 = false;
StiOptions.Viewer.Windows.Exports.ShowExcelXml = false;
Thank you.
mihiri1
Posts: 12
Joined: Tue May 15, 2012 3:00 am
Location: Brisbane, QLD

Re: Stop Export to Excel from Report viewer

Post by mihiri1 »

Hi, Thanks.

Where should this be set? On an event?
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Stop Export to Excel from Report viewer

Post by HighAley »

Hello.

These are the static options. They should be set before initializing of the Viewer.

Thank you.
mihiri1
Posts: 12
Joined: Tue May 15, 2012 3:00 am
Location: Brisbane, QLD

Re: Stop Export to Excel from Report viewer

Post by mihiri1 »

Thanks, It did work.
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Re: Stop Export to Excel from Report viewer

Post by Andrew »

Hello,

Great!
Post Reply