Posted 8 February 2018, 2:42 am EST
Hello,
Yes, you are right. The latency in print dialog is usually caused when the printer is a network printer or there are multiple printers installed on the machine. For printing, ActiveReports fetches the settings for all the installed printers, hence the delay. If it’s a SectionReport, you can set the PrinterName to “” (empty string) in the Report’s constructor (if it’s a code-based report) or using the report’s object if it’s an rpx.
Another solution is to use the StandardDialog for printing which can be set using either of the code snippets given below:
-
Document.Print(GrapeCity.Viewer.Common.PrintingSettings.UseStandardDialog);
-
Document.Print(GrapeCity.Viewer.Common.PrintingSettings.UsePrintingThread| GrapeCity.Viewer.Common.PrintingSettings.UseStandardDialog);
Hope it helps.
Thanks,
Mohit