Hallo,
with our application document will be printed via the XpsDocumentWriter.
Almost everytime the print works without any problems.
But from time to time the following error occurs:
PrintTicket provider failed to convert DEVMODE to PrintTicket.Win32 error:-2147467259 at MS.Internal.Printing.Configuration.PTProvider.ConvertDevModeToPrintTicket(Byte[] devMode,PrintTicketScope scope) at System.Printing.Interop.PrintTicketConverter.InternalConvertDevModeToPrintTicket(PTProviderBase provider,Byte[] devMode,PrintTicketScope scope) at System.Printing.PrintTicketManager.ConvertDevModeToPrintTicket(Byte[] devMode) at System.Printing.PrintQueue.get_UserPrintTicket() at System.Windows.Xps.Serialization.NgcPrintTicketManager.ConstructPrintTicketTree(XpsSerializationPrintTicketRequiredEventArgs args) at System.Windows.Xps.Serialization.NgcSerializationManagerAsync.OnNGCSerializationPrintTicketRequired(Object operationState) at System.Windows.Xps.Serialization.NgcSerializationManagerAsync.SaveAsXaml(Object serializedObject) at System.Windows.Xps.XpsDocumentWriter.WriteAsync(DocumentPaginator documentPaginator,PrintTicket printTicket) at Willis.Base.Pdf.PagePrintMailControl.simpleButtonPrint_Click(Object sender,EventArgs e)
What could be the reason for this?
Printing one document on day a on the same printer by the same user can result in the error but on day b the same document on the same printer by the same user can be printed without an error, what is pretty strange.
Thanks for your help.