Prepare hide dialog

Hi,

Is there a way to hide/not show any of the dialogs when printing or exporting?

When calling report.prepare(), a dialog is shown (progress dialog), even though its really quick.

report.PrintSettings.ShowDialog=false, is the only settings I could find, but that dont seem to have any effect on report.prepare();

var report = new Report();
report.Load(@"sample.frx");
report.PrintSettings.ShowDialog = false;
report.Prepare();    // show progress dialog
using (var ms = new MemoryStream())
{
    var pdfExport = new PDFExport
    {
        Name = "Exported",
        Background = true
    };
    report.Export(pdfExport, ms);
    
    File.WriteAllBytes(pdfExport.Name + ".pdf", ms.ToArray());
}

Cheers

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.