The attached document (VT01.doc) produces the attached exception (Exception.png) through the code.:
Document document = new Document("VT01.doc");
foreach (Section section in document.Sections) {
section.PageSetup.FirstPageTray = DefaultPageSettings.PaperSource.RawKind;
section.PageSetup.OtherPagesTray = DefaultPageSettings.PaperSource.RawKind;
}
document.Print();
Any printer, XPS/PCL/PS produces the error; For testing purposes this is run with default printer as a Microsoft OneNote print queue.
The code is run outside the main GUI thread.
Operating system is Windows7, dotnet 3.5 (runtime 2.0.50727).
Aspose.Words 11.1 (From Aspose.Total package)
Any comments?