ceTe.DynamicPDF.Printing.PrintingException: Error initializing print options. Error code:6

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF ReportWriter for .NET (v4)  /  ceTe.DynamicPDF.Printing.PrintingException: Error initializing print options. Error code:6

DynamicPDF ReportWriter for .NET (v4) Forum

We are getting exception in printing pdf. This is what we see from the stack trace -
ceTe.DynamicPDF.Printing.PrintingException: Error initializing print options. Error code:6
   at ceTe.DynamicPDF.Printing.PrintJobPrintOptions..ctor(PrintJob )
   at ceTe.DynamicPDF.Printing.PrintJob..ctor(String printerName, String pdfFileName)

Can you please help us understand Error code 6 and how to troubleshoot it futher.

Thank you,
Varsha
Posted by a ceTe Software moderator
Hello,

Please try updating to the latest version. You can download latest product from NuGet(Package ID: ceTe.DynamicPDF.Printing.NET) or from our website here.

The error code 6 reported in the PrintManager exception is a windows error returned by the spooler. You can refer to the details on windows error here. PrintManger is passing on the error it received from the spooler (while creating the PrintJob) in your application.  It seems like the spooler malfunction is causing the PrintManager to error out as well. The Spooler could malfunction due to various reasons like a print driver or OS issue.

Thanks,
ceTe Software Support Team
PrintingException: The printer named "\\RLG-FL-PRINTS\FL_SHIP4" could not be opened. Error code: 3012
ceTe.DynamicPDF.Printing.PrintingException: The printer named "\\RLG-FL-PRINTS\FL_SHIP4" could not be opened. Error code: 3012
   at b6.a(String A_0)
   at ceTe.DynamicPDF.Printing.PrintJob..ctor(String printerName, String pdfFileName)
   at


Sometimes we get this exception from many printers in Shared server. Is there any resolution.
Posted by a ceTe Software moderator
Hi,

The error code: 3012 is actually a windows error which indicates that the specified printer is not found.  Please try installing the respective printer driver on the system where the application is running and see if it works for you.

Also make sure to have sufficient permissions on your application to access the specified printer.

Our API is just passing the error it received from the printer/spooler to the client application.

Thanks,
ceTe Software Support Team

All times are US Eastern Standard time. The time now is 12:26 PM.