cancel
Showing results for 
Search instead for 
Did you mean: 

ReportDocument PrintToPrinter slow

Former Member
0 Kudos

I try to print a report using the PrintToPrinter method in CR 13.0.19.2312. It takes a lot of time.

var printerSettings = new System.Drawing.Printing.PrinterSettings {PrinterName = printerPath};
var pageSettings = new PageSettings(printerSettings);
var printLayout = new PrintLayoutSettings();   
report.PrintToPrinter(printerSettings, pageSettings, false, printLayout);

It seems to be a known problem with the solution to use

 PrintOutputController.PrintReport 

instead. However, as far a I understood, the printer must be configured in the "Printers" dialog of the Windows Account that is printing. This is not that easy because it is "NETWORK SERVICE".

Is there any other possibility to print the report without a large delay?

Thank you!

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi Alexander,

On the download WIKI there is a Printer test app:

https://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports%2C+Developer+for+Visual+Studio+Downloads

And it has this link to a printer test app I wrote, see if using PrinterPitputController works better:

https://blogs.sap.com/2015/08/19/printing-crystal-reports-in-net/

Issues can be No Printer Checked on with Dissociate not checked on. Always use Dissociate, it removes the dependency on the printer the report was designed with. If they are Labels then you must define the paper size in the printer and select it for the report.

The test app works for all printers, except possibly Dot Matrix printers, we don't work well with them due to the way they work. CR outputs an image of each page so it's slow printing.

Don

Answers (3)

Answers (3)

Former Member
0 Kudos

I tried 13.0.19 and 13.0.21

Former Member
0 Kudos

Crystal Reports for Visual Studio Version 13.0.19.2312

0 Kudos

What SDK are you using?