Silent export

edited 6:19PM in FastReport .NET
Hi all!

I need to make "silent export" report in a pdf-file. I'm write next code:
using (var report = new Report()) {
    report.Load(@"..\..\report.frx");
    report.RegisterData(data);
    report.Prepare();
    report.Export(new PDFExport { ShowProgress = false }, "result.pdf");
}

But every time I see the following dialog:

How can i hide this dialog?

Thanks!

Comments

  • edited 6:19PM
    Hello,

    Call the following code before generating a report:

    using FastReport.Utils;
    Config.ReportSettings.ShowProgress = false;

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.