How to change the system default printer to Landscape system wide

J

Just Me

I want to programmatically change the paper orientation of the systems
default printer in such a way that the new orientation shows for the printer
under:

Start/Printer and Faxes

Can anyone tell me how to do that?


I have some unmanaged code that no longer works for some unknown reason.



Thanks
 
K

Kaoru Kodaka

Dear ...?

I want to programmatically change the paper orientation of the systems
default printer in such a way that the new orientation shows for the printer

Same as Visual Basic 6.0's way. You should use Win32 API
"SetPrinter()". and check PRINTER_INFO_2.pDevMode.dmOrientation
member.
 
J

Just Me

Thanks, I have it working


Kaoru Kodaka said:
Dear ...?



Same as Visual Basic 6.0's way. You should use Win32 API
"SetPrinter()". and check PRINTER_INFO_2.pDevMode.dmOrientation
member.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top