Page 1 of 1

Disabling report viewer menu items

Posted: Mon Mar 14, 2011 8:53 am
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

Disabling report viewer menu items

Posted: Tue Mar 15, 2011 12:52 am
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.

Disabling report viewer menu items

Posted: Tue Mar 15, 2011 3:21 am
by VojinDm
Thanks Aleksey, you saved me some time - again. :)

Disabling report viewer menu items

Posted: Tue Mar 15, 2011 4:38 am
by Andrew
Have a nice day!