Printer Settings

I want a document to print only on "legal-size" paper. How do I change this setting in my C++ program? Can I save these printer settings?
bcaliAsked:
Who is Participating?
 
chensuConnect With a Mentor Commented:
I assume you are writing a Win32 application. You should have indicated it. And it is better to post this question to the Windows programming topic area.

HOWTO: Modify Printer Settings with DocumentProperties()
http://support.microsoft.com/support/kb/articles/Q167/3/45.asp

HOWTO: Modify Printer Settings by Using SetPrinter
http://support.microsoft.com/support/kb/articles/Q140/2/85.asp

0
 
MT_MUCommented:
Use SelectPrinter..

In particular you will need to look at the dmPaperSize member of the DEVMODE structure that is passed to SelectPrinter.
0
All Courses

From novice to tech pro — start learning today.