on ‎2017 May 30 4:11 PM
Hi
I have trouble to print a report on both sides of the page. I keeps coming out on a single side.
I used Crystal Reports 2016 and I installed the SAP Crystal Reports runtime engine for .NET Framework.
I use the following statement to launch the print:
reportDocument.PrintToPrinter(printerSettings, pageSettings, false);
These are the values of printerSettings and pageSettings at the time of printing.


I also tried using the print options.
reportDocument.PrintOptions.NoPrinter = false;
reportDocument.PrintOptions.PrinterName = printerName;
reportDocument.PrintOptions.PrinterDuplex = CrystalDecisions.Shared.PrinterDuplex.Horizontal;
reportDocument.PrintOptions.CustomPaperSource = new System.Drawing.Printing.PaperSource();
reportDocument.PrintOptions.CustomPaperSource.RawKind = paperSource;
reportDocument.PrintToPrinter(1, false, 0, 0);
Same result.
The driver that is installed on the machine is HP Universtal Printing PCL 5.
The printer is a HP Laserjet 600 M602.
Thanks
Frédéric
Request clarification before answering.
Update to SP 22 and see the sample printer app on the download wiki page:
https://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports%2C+Developer+for+Visual+Studio+Downloads
Don
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.