disable save page
Posted: Fri Jun 30, 2017 7:01 pm
StiOptions.Designer.AllowPageSaveAs is not work . How to prevent a user from saving a copy of the report
Reporting tool and data analytics tools for creating reports and dashboards in ASP.NET, ASP.NET MVC, .NET Core, Blazor, Angular, PHP, Python, WPF, JavaScript, and Java applications.
https://forum.stimulsoft.com/
Code: Select all
//If you need you can hide menu item "Save As.."
StiMainMenuService service = StiMainMenuService.GetService();
service.ShowFileReportSaveAs = false;
service.ShowFileReportSave = false;
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()
Code: Select all
StiOptions.Designer.Ribbon.ShowMainMenuReportSaveAs
StiOptions.Designer.Ribbon.ShowMainMenuReportSave