DontAskSaveReport vs IsModified

Stimulsoft Reports.NET discussion
Post Reply
Tobias
Posts: 104
Joined: Mon Nov 24, 2008 8:44 am

DontAskSaveReport vs IsModified

Post 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
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: DontAskSaveReport vs IsModified

Post by HighAley »

Hello.

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

Thank you.
Post Reply