By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,552 Members | 893 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,552 IT Pros & Developers. It's quick & easy.

How to change the system default printer to Landscape system wide

P: n/a
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
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Dear ...?

On Fri, 3 Jun 2005 09:24:42 -0400
" Just Me" <gr****@a-znet.com> wrote:
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.

---
MVP kaok = MVP.ChangeMvpCategory("for C# 2004-2005.");
kaok.Web = "http://www.antoine.st/";

Nov 21 '05 #2

P: n/a
Thanks, I have it working
"Kaoru Kodaka" <ka**@venus.dti.ne.jp> wrote in message
news:20**********************@venus.dti.ne.jp...
Dear ...?

On Fri, 3 Jun 2005 09:24:42 -0400
" Just Me" <gr****@a-znet.com> wrote:
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.

---
MVP kaok = MVP.ChangeMvpCategory("for C# 2004-2005.");
kaok.Web = "http://www.antoine.st/";

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.