Page 1 of 1

disable save page

Posted: Fri Jun 30, 2017 7:01 pm
by waleedhm
StiOptions.Designer.AllowPageSaveAs is not work . How to prevent a user from saving a copy of the report

Re: disable save page

Posted: Fri Jun 30, 2017 9:08 pm
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

Re: disable save page

Posted: Sat Jul 01, 2017 2:18 am
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,

Re: disable save page

Posted: Mon Jul 03, 2017 1:49 pm
by Alex K.
Hello,

Please try to use the following options:

Code: Select all

StiOptions.Designer.Ribbon.ShowMainMenuReportSaveAs
StiOptions.Designer.Ribbon.ShowMainMenuReportSave
Thank you.

Re: disable save page

Posted: Mon Jul 03, 2017 6:14 pm
by waleedhm
Thank you ,Works well

Re: disable save page

Posted: Mon Jul 03, 2017 10:29 pm
by Alex K.
Hello

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

Thank you.