Setting Printer to Landscape & Portrait

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

Thank you.
Zainal062797Asked:
Who is Participating?
 
chensuConnect With a Mentor Commented:
Thank you.
0
 
DalinCommented:
Zainal,
From the start menu, select setting/printer, and highlight your printer,  and select file/properties, and click on the paper tab.
regards
Dalin
0
 
Zainal062797Author Commented:
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.
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

 
chensuCommented:
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.
0
 
DalinCommented:
Zainal,
Sorry, I did not realize you are try to change it via program.
What language do you use to program?
Regards
Dalin
0
 
Zainal062797Author Commented:
I use VC++ .
0
 
DalinCommented:
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
0
 
trestanCommented:
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.
0
 
Zainal062797Author Commented:
if I grade this answer who is going to get the grade?
I want to grade this to the benifit of chensu.

Thanks.
0
 
chensuCommented:
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.
0
 
Zainal062797Author Commented:
I reopened this qustion so I can give the points to "Chensu".

Thank you.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.