When calling Print() on a PrintDocument class, we randomly receive a
System.ComponentModel.Win32Exception with the odd message "The operation
completed successfully" coming from the GetHdevmodeInternal() call. We
cannot reproduce the problem on demand -- can anyone help enlighten us on
where this exception may be coming from so that we can try to uncover a
specific scenario that reproduces this problem so that we can correctly fix
it?
Thanks,
The operation completed successfully
at System.Drawing.Printing.PrinterSettings.GetHdevmod eInternal()
at System.Drawing.Printing.PrinterSettings.GetHdevmod e(PageSettings
pageSettings)
at System.Drawing.Printing.PrintController.OnStartPri nt(PrintDocument
document, PrintEventArgs e)
at
System.Windows.Forms.PrintControllerWithStatusDial og.OnStartPrint(PrintDocument document, PrintEventArgs e)
at System.Drawing.Printing.PrintController.Print(Prin tDocument document)
at System.Drawing.Printing.PrintDocument.Print()