Disabling Toolbar items in web Viewer
Posted: Fri Apr 25, 2014 3:42 pm
Hi,
I know this has been discused before, i've already searched and read the forum threads about disabling / hiding toolbar buttons in the web viewer (asp .net), but cant make this work.
Im using Version=2013.3.1800 (full version) and using this code (only showing relevant lines):
Now, i've already tried calling ConfiguraVisor(boolean) either in Page_Init and just before
The issue here is that Save and Print buttons are showing and enabled, no matter the value of the boolean parameter im passing.
Any help or insight you can provide would be greatly appreciated!
I know this has been discused before, i've already searched and read the forum threads about disabling / hiding toolbar buttons in the web viewer (asp .net), but cant make this work.
Im using Version=2013.3.1800 (full version) and using this code (only showing relevant lines):
Code: Select all
using vwrv = Stimulsoft.Report.StiOptions.Viewer.Windows;
private void ConfiguraVisor(bool bPermiso)
{
vwrv.ShowSaveButton = bPermiso;
vwrv.ShowPrintButton = bPermiso;
if (!bPermiso)
{
vwrv.Exports.ShowBmp = false;
vwrv.Exports.ShowCsv = false;
vwrv.Exports.ShowData = false;
vwrv.Exports.ShowDbf = false;
vwrv.Exports.ShowDif = false;
vwrv.Exports.ShowExcel = false;
vwrv.Exports.ShowExcel2007 = true;
vwrv.Exports.ShowExcelXml = false;
vwrv.Exports.ShowGif = false;
vwrv.Exports.ShowHtml = false;
vwrv.Exports.ShowHtml5 = false;
vwrv.Exports.ShowExcelXml = false;
vwrv.Exports.ShowImage = false;
vwrv.Exports.ShowJpeg = true;
vwrv.Exports.ShowMetafile = false;
vwrv.Exports.ShowMht = false;
vwrv.Exports.ShowOds = true;
vwrv.Exports.ShowOdt = true;
vwrv.Exports.ShowPcx = false;
vwrv.Exports.ShowPdf = true;
vwrv.Exports.ShowPng = true;
vwrv.Exports.ShowPpt2007 = false;
vwrv.Exports.ShowRtf = false;
vwrv.Exports.ShowSvg = false;
vwrv.Exports.ShowSvgz = false;
vwrv.Exports.ShowText = false;
vwrv.Exports.ShowTiff = false;
vwrv.Exports.ShowWord2007 = true;
vwrv.Exports.ShowXml = false;
vwrv.Exports.ShowXps = false;
vwrv.ShowSaveButton = false;
}
}
Code: Select all
Report.Render(true);
this.ReportViewer = rpt;
Any help or insight you can provide would be greatly appreciated!