Hello,
An exception System.NotSupportedExecption is thrown when calling PdfViewer.PrintDocumentWithSetup.
Is it any prerequisites to use this function?
Here is the code snippet I’m using:
using var viewer = new PdfViewer();
viewer.BindPdf(@“c:\temp\test.pdf”);
viewer.AutoResize = true; // Print the file with adjusted size
viewer.AutoRotate = true; // Print the file with adjusted rotation
viewer.PrintPageDialog = false; // Do not produce the page number dialog when printing
viewer.PrintDocumentWithSetup();
I’m using Aspose 22.1.0 on Windows 10.
Thanks for your help