how to disable Now compiling report dialog?

Stimulsoft Reports.NET discussion
Post Reply
zjh111111
Posts: 7
Joined: Tue Dec 08, 2009 5:38 am

how to disable Now compiling report dialog?

Post by zjh111111 »

StiReport report = new StiReport();

report.Load(Application.StartupPath + "\\Report\\srXiaoFeiDan.mrt");
report.Compile();
//report.Render();

PrinterSettings printerSettings = new PrinterSettings();
printerSettings.PrinterName = PrintName;
printerSettings.Copies = 2;

report.Print(false, printerSettings);

when I run it,it will show a dialog with message: Now compiling report...finish
How to disable it?
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

how to disable Now compiling report dialog?

Post by Jan »

Hello,

Please use following code:

Code: Select all

StiReport report = new StiReport();

report.Load(Application.StartupPath + "\\Report\\srXiaoFeiDan.mrt");
report.Compile();
report.Render(false);<----------------------------------

PrinterSettings printerSettings = new PrinterSettings();
printerSettings.PrinterName = PrintName;
printerSettings.Copies = 2;

report.Print(false, printerSettings);
Thank you.
zjh111111
Posts: 7
Joined: Tue Dec 08, 2009 5:38 am

how to disable Now compiling report dialog?

Post by zjh111111 »

yeah,good,thanks more.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

how to disable Now compiling report dialog?

Post by Edward »

Hi

Please let us know if any help is required.

Thank you.
Post Reply