Link to home
Start Free TrialLog in
Avatar of Zainal062797
Zainal062797

asked on

Setting Printer to Landscape & Portrait

How can I set the printer to "Landscape" and to "Portrait"?

Thank you.
Avatar of Dalin
Dalin

Zainal,
From the start menu, select setting/printer, and highlight your printer,  and select file/properties, and click on the paper tab.
regards
Dalin
Avatar of Zainal062797

ASKER

Thanks. However, I was asking about doing this through my program by setting some parameters. The method you described is fine, but I want my program to print in one mode regrdless of the way the printer is set through the Print Tab.

Thanks.
How to Change Default Printer Settings in an MFC Application
http://support.microsoft.com/support/kb/articles/q126/8/97.asp

How to Modify Printer Settings by Using SetPrinter
http://support.microsoft.com/support/kb/articles/q140/2/85.asp

Reject the previous answer if you are satisfied with mine.
Zainal,
Sorry, I did not realize you are try to change it via program.
What language do you use to program?
Regards
Dalin
I use VC++ .
Then I think Chensu's posting should have your answer. To be fair, you can reject myanswer and ask hom to relock the question.
Regards
Dalin
I think this question is the same with the other one. Please check the two structures and also read more information at:
Developer Products -> Visual C++ -> Visual C++ Programmer's Guide -> Details -> Printing and Print Preview Topics.
if I grade this answer who is going to get the grade?
I want to grade this to the benifit of chensu.

Thanks.
If you grade this answer, Dalin will get the points. :-(

If you want to give me the points, you need to reopen it first so that I can answer it. :-)


> Sorry, I did not realize you are try to change it via program.

Dalin,

By the way, you should always think so since we are in the Windows Programming topic area.
I reopened this qustion so I can give the points to "Chensu".

Thank you.
ASKER CERTIFIED SOLUTION
Avatar of chensu
chensu
Flag of Canada 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