Click here to Skip to main content
15,567,221 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.
Updated 7-Oct-21 4:39am
Gerry Schmitz 7-Oct-21 13:33pm

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