How to change the system default printer to Landscape system wide

  • Thread starter Thread starter Just Me
  • Start date Start date
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
 
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.
 
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.
 
Back
Top