Hi,
whenever I am trying to print a document with the XPS document printer I receive a Win32Exception.
I have not tried this for a long time, but I am pretty sure it used to work with the same assembly version of SyntaxEdtior and no relevant changes on my side. Maybe this issue was introduced with a Windows update or .Net 4.5. Our application uses .Net 4.0, but 4.5 was introduced with a Windows update and already caused a couple of problems.
Even if I handle the exception, the XPS file is not created and the printing dialog is never closed.
Message: The operation completed successfully
NativeErrorCode: 0
at System.Drawing.Printing.StandardPrintController.OnEndPage(PrintDocument document, PrintPageEventArgs e)
at System.Windows.Forms.PrintControllerWithStatusDialog.OnEndPage(PrintDocument document, PrintPageEventArgs e)
at System.Drawing.Printing.PrintController.PrintLoop(PrintDocument document)
at System.Drawing.Printing.PrintController.Print(PrintDocument document)
at System.Drawing.Printing.PrintDocument.Print()
at ActiproSoftware.SyntaxEditor.SyntaxEditor.Print(Boolean showDialog, Boolean useExtendedDialog)
Message: A "StartDocPrinter" call was not issued
NativeErrorCode: 3003
at System.Drawing.Printing.StandardPrintController.OnEndPrint(PrintDocument document, PrintEventArgs e)
at System.Windows.Forms.PrintControllerWithStatusDialog.OnEndPrint(PrintDocument document, PrintEventArgs e)
at System.Drawing.Printing.PrintController.Print(PrintDocument document)
at System.Drawing.Printing.PrintDocument.Print()
at ActiproSoftware.SyntaxEditor.SyntaxEditor.Print(Boolean showDialog, Boolean useExtendedDialog)
Best regards, Tobias Lingemann.