on 11-20-2017 3:21 PM
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!
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried 13.0.19 and 13.0.21
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Crystal Reports for Visual Studio Version 13.0.19.2312
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What SDK are you using?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.