Cancel Save Event
Posted: Wed Jun 09, 2010 7:21 pm
Is there a way to cancel a ReportSave event. And also display a message in the report designer that the report has not been saved.
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/
What do you mean by the cancel a ReportSave event?Is there a way to cancel a ReportSave event.
You can use e.ErrorCode parameter for this:And also display a message in the report designer that the report has not been saved.
Code: Select all
protected void StiWebDesigner1_SaveReport(object sender, StiWebDesigner.StiSaveReportEventArgs e)
{
e.ErrorCode = 1;
// -1: default value, the message is not displayed
// 0: display 'Report is successfully saved' message
// Otherwise, displays an error code
}