Disabling report viewer menu items

Stimulsoft Reports.Silverlight discussion
Locked
VojinDm
Posts: 16
Joined: Thu Feb 24, 2011 3:49 am
Location: Kragujevac

Disabling report viewer menu items

Post by VojinDm »

Hello,

I need to disable some of export buttons in report viewer control. (I need only pdf and word export options - all other should be hidden)
Is there any way to do this?

Best regards,
VojinDM
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Disabling report viewer menu items

Post by Alex K. »

Hello,

You can use the following code:

Code: Select all

StiOptions.Viewer.SaveReportsButtons.ShowPdfButton = false;
StiOptions.Viewer.SaveReportsButtons.ShowDocumentButton = false;
...
Thank you.
VojinDm
Posts: 16
Joined: Thu Feb 24, 2011 3:49 am
Location: Kragujevac

Disabling report viewer menu items

Post by VojinDm »

Thanks Aleksey, you saved me some time - again. :)
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Disabling report viewer menu items

Post by Andrew »

Have a nice day!
Locked