Code: Select all
StiDesigner.DontAskSaveReport = true;
_stiReport.Design();
Console.WriteLine(_stiReport.IsModified);
A workaround is to hook to the StiDesigner.SavingReport event and set args.Processed = true
Code: Select all
StiDesigner.DontAskSaveReport = true;
_stiReport.Design();
Console.WriteLine(_stiReport.IsModified);