Page 1 of 1

DontAskSaveReport vs IsModified

Posted: Wed Mar 04, 2015 10:39 am
by Tobias
When doing this:

Code: Select all

StiDesigner.DontAskSaveReport = true;
_stiReport.Design();
Console.WriteLine(_stiReport.IsModified);
...then IsModified is always false. Is this a bug or by design?

A workaround is to hook to the StiDesigner.SavingReport event and set args.Processed = true

Re: DontAskSaveReport vs IsModified

Posted: Thu Mar 05, 2015 9:45 am
by HighAley
Hello.

The IsModified property works so by design.
The best solution for you is to use the SavingReport event.

Thank you.