Hi,
I am very new to Stimulsoft Reports, so please excuse me if this is a silly question.
I just wondered if there is a way to hide the "Save As" button in the Web Designer menu.
The reason for this is that I am saving all ym reports as Binary Data to a database and I do not want the users to be able to save them as a file.
I found some sample code in another thread something to the effect of..
StiMainMenuService mainMenuService = StiMainMenuService.GetService();
mainMenuService.ShowFileReportSaveAs = false;
I am assuming this is for the Windows Designer though as I cant find any reference to it or an assembly that contains the StiMainMenuService.
Any help would be much appreciated.
Many thanks in advance.
Simon
Is there a way to hide the "Save As" menu item in the Web Designer
Is there a way to hide the "Save As" menu item in the Web Designer
Hello,
Please use following code before calling report designer:
Thank you.
Please use following code before calling report designer:
Code: Select all
Stimulsoft.Report.Web.StiWebDesignerOptions.Menu.SaveAs = false;
Is there a way to hide the "Save As" menu item in the Web Designer
Hi Jan,
That's perfect - thank you very much.
Simon
That's perfect - thank you very much.
Simon
-
- Posts: 1
- Joined: Wed Sep 15, 2010 4:14 am
Is there a way to hide the "Save As" menu item in the Web Designer
What is the Win Forms version of this code?
Stimulsoft.Report.Web.StiWebDesignerOptions.Menu.SaveAs = false;
Is there a way to hide the "Save As" menu item in the Web Designer
Hello,
For Win forms
Thank you.
For Win forms
Code: Select all
Stimulsoft.Base.Services.StiServiceContainer services = Stimulsoft.Report.StiConfig.Services.GetServices(
typeof(Stimulsoft.Report.Design.StiMainMenuService));
foreach (Stimulsoft.Report.Design.StiMainMenuService service in services)
{
service.ShowFileReportSaveAs = false;
}