Error when cancelling XPS Document Writer print job

Error when cancelling XPS Document Writer print job

Forum member · Dec 26, 2013
When the Microsoft XPS Document Writer print driver is chosen as the target for my printing application and the user cancels the resulting Save File dialog, DynamicPDF throws an error exception with the message: Print job could not be created in the spooler. Error code:1223 This is a normal scenario and should not throw an error. Is the error code 1223 a DynamicPDF error code, and if so, are these codes documented anywhere? Thanks, Paul

Re: Error when cancelling XPS Document Writer print job

Support · Dec 27, 2013
Hello Paul, The error code 1223 is a system error generated when the user cancels the save dialog and is not caused by the PrintManager. PrintManager sends the print job to the spooler and monitors the job within the spooler. Whenever the printer returns the job status or an exception, it is reported back to the calling application by the PrintManager. These errors will need to be handled in your application code using a try..catch block. Thanks, ceTe Software Support Team.

Re: Error when cancelling XPS Document Writer print job

Forum member · Dec 27, 2013
Thanks for your reply. I am using a try/catch, during which I typically report all errors. Odd that this is considered an error, though. I can always suppress it, I guess...