I have followed the below tutorial to slient print a pdf document.
But the printout is always in portrait, no matter how I change the below settings:
pdfviewer1.PrinterSettings.PageOrientation = PdfViewerPrintOrientation.Landscape;
dialog.Document.DefaultPageSettings.Landscape = true;
viewer.PrintDocument.DefaultPageSettings.Landscape = true;
And if I manually open the pdf and click the print button, the print out is able to print in landscape. Do you have any idea on this issue?
Thank you for your help in advance.
Some background information for your reference:
Size of the print out is 4 x 1.33 inch.
Pdf is created using syncfusion with a custom size 4 x 1.33 inch
Syncfusion Version 184.108.40.206. is used.