I have been able to get the print manager to work well for the most part, but have come across an error that I can figure out how to handle correctly.  Here is a code snippet: http://pastebin.com/FaapFSXk
Basically I am calling RunWorkerAsync to print my document.  I get an exception that gets caught in bw_DoWork: Print job could not be created in the spooler. Error code:1722
There is also an unhandled exception that is not caught that causes my application to crash:
pplication: PrintService.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: ceTe.DynamicPDF.Printing.PrintingException
Stack:
   at k.d()
   at System.Threading.ThreadHelper.ThreadStart_Context(System.Object)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Threading.ThreadHelper.ThreadStart()
I would have expected this to get caught in the PrintJobFailed event, but it did not.
Here are my questions:  Where does that error code come from?  Is it a DynamicPDF error code or from Windows?  How can I handle the exception that I assume is happening withing the DynamicPDF library in an asynchronous process?
Thanks.