Click here to Skip to main content
15,498,966 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using the PrintDocument() object to create reports. I set the printer properties (orientation, paper type, etc.) and attach that to the PrintDocument(). If I print directly to a printer it comes out perfectly. If I print to the "Microsoft Print to PDF", when I attempt to print it it comes up in portrait mode all the time. Landscape reports look odd in the print previewer until I check the landscape button.

His do you create a PDF file so its orientation is known by the PDF viewer's print dislocate?

What I have tried:

Programmatically create a PDF file.
Posted
Updated 7-Oct-21 4:39am
Comments
Gerry Schmitz 7-Oct-21 13:33pm    
https://answers.microsoft.com/en-us/windows/forum/all/microsoft-print-to-pdf-option-changes-page/6063d035-ef68-4da9-8da8-acf4920faff1

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900