protected void StiWebDesigner1_SaveReport(object sender, StiSaveReportEventArgs e) { StiReport report = e.Report; // string packedReport = report.SavePackedReportToString(); // ... // The save report code here // ... }
protected void StiWebDesignerFx1_SaveReport(object sender, StiSaveReportEventArgs e) { // Web Designer return StiReport object in the e.Report property var reportString = e.Report.SaveToString(); // You can set the error code which will be displayed by the designer after saving // -1: default value, the message is not displayed // 0: display 'Report is successfully saved' message //e.ErrorCode = 1; // Also you can set the custom message, it will be displayed after saving e.ErrorString = "Your report has been saved."; }
protected void StiWebDesigner1_SaveReport(object sender, StiSaveReportEventArgs e) { StiReport report = e.Report; report.Save(Server.MapPath(@"Reports\" + report.ReportName + ".mrt")); }