Skip to Content
avatar image
Former Member

Crystal report cannot print out with HP universal printing pcl6 v6.2.1 driver

we have an app developed with C#. it generate some Crystal report and print out it to printer queue. it works finewith HP universal printing pcl6 v5.8.0 driver.

However this app error out when the printer driver upgraded to HP universal printing pcl6 v6.2.1 driver. we use Crystal report's PrintToPrinter function.

rpt.PrintToPrinter(1, false, 1, 10);

which is using ReportClass, ReportDocument's member function PrintToPrinter(int nCopies, bool collated, int startPageN, int endPageN).

it is a member ofCrystalDecisions.CrystalReports.Engine.ReportDocument

I update the Crystal report develop tool kid from CRforVS_13_0_13 to CRforVS_13_0_13. but there no any improvement, which include the CrystalDecisions.CrystalReports.Engine.

the error messagesis "The parameter is incorrect System.Drawing"

I also tried another overload member (also inCrystalDecisions.CrystalReports.Engine.ReportDocumen ) "void PrintToPrinter(System.Drawing.Printing.PrinterSettings printerSettings, System.Drawing.Printing.PageSettings pageSettings, bool reformatReportPageSettings) . and the problem is same.

How fix this issue?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jan 23, 2017 at 11:05 AM

    hello

    Can you check with the SP14 version? I see that some printing issues has been fixed there.

    https://wiki.scn.sap.com/wiki/display/BOBJ/SAP+Crystal+Reports%2C+developer+version+for+Microsoft+Visual+Studio+-+Service+Pack+14+-+Fixed+Issues

    Regards,

    János

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 27, 2017 at 12:29 AM

    Hi Janos,

    Thanks, I uninstall old develop tools, restart the computer, install new version.

    rebuilt the C# application

    on the target machine, uninstall old runtime, restart the computer,

    run the app, get the error

    Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=13.0.2000.0, Culture=neut ral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system can not find the file specified.

    so this confirms the old runtime removed.

    Than install new runtime. run the app again it still failed with error message:

    26-JAN-2017 15:51:21 printing Crystal Report exception, error message: The parameter is incorrect System.Drawing

    the printer is on the network under a printer server. For the same physical printer we make two printers under the printer server with different driver. the HP universal printing pcl6 v6.2.1 driver printer does not work as I describe above. but when I run the same app but send to HP universal printing pcl6 v5.8.0 driver printer and it works fine.

    if we print other document to the HP universal printing pcl6 v6.2.1 driver printer. they work fine.

    is any way we can fix this issue?

    thanks,

    James

    Add comment
    10|10000 characters needed characters exceeded