ASPOSE PDF Exception Thrown

Wondering if anyone has had any experience with seeing/fixing this exception?

Timestamp: 1/7/2013 3:56:27 PM

Message: Application Error: There was an
error printing using ASPOSE Print to Printer - ScanChart-Tray2Duplex - Gold

******************** Exception ********************

Exception Message:

Settings to access printer 'ScanChart-Tray2Duplex - Gold' are not valid.

Stack<> Trace:

at
System.Drawing.Printing.PrinterSettings.GetHdevmodeInternal()

at
System.Drawing.Printing.PrinterSettings.CreateInformationContext(PageSettings
pageSettings)

at
System.Drawing.Printing.PageSettings.get_PrintableArea()

at Aspose.Pdf.Kit.PdfViewer.PrintDocumentWithSettings(PageSettings
pageSettings, PrinterSettings printerSettings)

at
Aspose.Pdf.Kit.PdfViewer.PrintDocumentWithSettings(PrinterSettings
printerSettings)

at
SurgicalNotes.Common.Aspose.Provider.Document.Print(String filePath, String
printerName)

Source:

System.Drawing

Category: Error

Priority: 4

EventId: 6Severity: Error

v

Hi Chris,


Sorry for the inconvenience faced. Could you please share some more information about the exception? You are getting it with some specific document or system or printer? Please also share your sample code along with the document, so we will test it at our end and will share more information.

Best Regards,