Hide export button in Viewer Toolbar at runtime

Stimulsoft Reports.WEB discussion
Post Reply
lucia_mgv
Posts: 22
Joined: Thu Aug 23, 2012 12:37 pm
Location: Vitoria-Gasteiz (Spain)

Hide export button in Viewer Toolbar at runtime

Post by lucia_mgv »

Hello,

I am trying to hide the export button of the StiWebViewerFx once the page has been loaded and I don't know if I can do it.

I have seen that there is the following option:

Code: Select all

StiWebViewerFxOptions.Toolbar.ShowSaveButton = false;
But I don't want to change the total configuration of the viewer since I want to show or hide the export button depending on each user's permissions. Therefore I want to change that configuration on runtime.

I would appreciate any help. Thanks,

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

Re: Hide export button in Viewer Toolbar at runtime

Post by HighAley »

Hello.

Unfortunately, it's impossible to hide buttons at runtime. You could do it before initialization of the Viewer only. Please, try to set this this static option in the PreInit event of the StiWebViewerFx.

Thank you.
Post Reply