Skip to Content
avatar image
Former Member

Problem printing report in duplex using Crystal Reports API

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

i40iy.png (78.2 kB)
twzhv.png (94.0 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Mar 01 at 03:24 PM

    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

    Add comment
    10|10000 characters needed characters exceeded