disable save page

Stimulsoft Reports.NET discussion
Post Reply
waleedhm
Posts: 39
Joined: Fri May 31, 2013 1:26 pm

disable save page

Post by waleedhm »

StiOptions.Designer.AllowPageSaveAs is not work . How to prevent a user from saving a copy of the report
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Re: disable save page

Post by Edward »

Hi Waleedhm,

One of the possible options would be to add your own event handlers that will control the report saving/loading options. Please see the Save and Load Report in Designer sample project on how to do it in the following link: https://www.stimulsoft.com/en/samples/w ... e-designer

And we will confirm in this topic when the issue with saving report as follows, is fixed:

Code: Select all

         
   //If you need you can hide menu item "Save As.."
   StiMainMenuService service = StiMainMenuService.GetService();
   service.ShowFileReportSaveAs = false;
   service.ShowFileReportSave = false;

Thank you,
Edward
waleedhm
Posts: 39
Joined: Fri May 31, 2013 1:26 pm

Re: disable save page

Post by waleedhm »

hi Edward,
This code works well When adding a tool StiRibbonDesignerControl But when called design function does not work Can we help in this?

Code: Select all

                    Dim Report As StiReport = New StiReport()
                    Report.LoadEncryptedReport(listVieeAppReprt.SelectedItems(0).Tag.ToString(), ConfigHelper.ReportPassword)
                    Report.Dictionary.Databases.Clear()
                    Report.Dictionary.DataSources.Clear()
                    Report.RegData(ReportDataSet)
                    Report.Dictionary.Synchronize()
                    Report.Compile()
                    Report.Render(True)
                    Report.Design()
Thanks in advanced,
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: disable save page

Post by Alex K. »

Hello,

Please try to use the following options:

Code: Select all

StiOptions.Designer.Ribbon.ShowMainMenuReportSaveAs
StiOptions.Designer.Ribbon.ShowMainMenuReportSave
Thank you.
waleedhm
Posts: 39
Joined: Fri May 31, 2013 1:26 pm

Re: disable save page

Post by waleedhm »

Thank you ,Works well
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: disable save page

Post by Alex K. »

Hello

We are always glad to help you!
Please let us know if you need any additional help.

Thank you.
Post Reply