Page 1 of 1

Hide export button in Viewer Toolbar at runtime

Posted: Thu Nov 15, 2012 8:15 am
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

Re: Hide export button in Viewer Toolbar at runtime

Posted: Fri Nov 16, 2012 8:14 am
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.