Search code examples
c#fastreport

fast-report close designer without save dialog


I'm working on an application that uses fast-report. If I modified the report and close the designer window I get asked if I want to save "Untitled.frx". How can I prevent this dialog from appearing?

Thanks in advance


Solution

  • There is AskSave property:

            var report = new Report();
            Config.DesignerSettings.DesignerLoaded += (object sender, EventArgs e) =>
            {
                report.Designer.AskSave = false;
            };
            report.Design();