Link to home
Start Free TrialLog in
Avatar of gleznov
gleznov

asked on

Printing Landscape w/o using the page setup dialog

Hi,

     How can you set a document/page to print in Landscape mode without using a page setup dialog?

JP
ASKER CERTIFIED SOLUTION
Avatar of Howard Cantrell
Howard Cantrell
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of naiea1231
naiea1231

Upon testing out the WMI code i posted earlier, it appears as if the orientation value is read only and it won't allow you to set it.
Another option is to use the page setup dialog, but not actually have it appear. You can use:

PageSetupDialog1.PageSettings.Landscape = True

And just go straight to print from there, without having the dialog appear in any way, all your using it for is to set the orientation, is this acceptable?

James