We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Unsupported PdfViewer.PrintDocumentWithSetup

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

@tfipsrd

We have managed to reproduce the same issue at our side. For the sake of correction, we have logged this problem in our issue tracking system as PDFNET-51568. You will be notified via this forum thread once this issue is resolved.

We apologize for your inconvenience.