Failed to open printer, error #5. Printing report with custom papersize

Posted by: softcom on 14 September 2017, 7:06 pm EST

    • Post Options:
    • Link

    Posted 14 September 2017, 7:06 pm EST

    [activereports_archive]Hi can anyone say what this error means and how I can fix it?

    My report is setup with Custom paper 8.5 x 11.69in on the Report Settings dialog. No where else do I set the papersize so it must be doing the Add automatically during rpt.Run()

    Failed to open the \PRINTSRV\IT - 01 - HP CM4730 printer, System error number 5 - at GrapeCity.ActiveReports.Extensibility.Printing.DDpaperSize.AddCustomPaperSize(String printerName, String papername, Single width, Single height) at … more

    Thanks

    Brian[/activereports_archive]

  • Posted 14 September 2017, 7:06 pm EST

    [activereports_archive]Brian,

    It seems a similar issue was discussed here:

    http://arhelp.grapecity.com/groups/topic/system-error-number-5/

    It talks about a few different possibilities that could be the cause to this. If none of the proposed solutions there help, let us know.[/activereports_archive]

  • Posted 14 September 2017, 7:06 pm EST

    [activereports_archive]Thanks, I will.

    Brian[/activereports_archive]

  • Posted 30 November 2020, 7:50 am EST

    Hi, this link redirect to home.

    I have same problem.

    regards

  • Posted 2 December 2020, 3:28 am EST

    Hello,

    In my understanding, the default printer of your machine does not support the PaperSize of the report. Could you please try after setting the PrinterName using the following line of code:

    rpt.Document.Printer.PrinterName = “Your Printer Name”;

    Thanks,

    Mohit

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels