Solved

Printer Settings

Posted on 2000-04-22
2
170 Views
Last Modified: 2010-04-02
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?
0
Comment
Question by:bcali
2 Comments
 
LVL 1

Expert Comment

by:MT_MU
ID: 2740173
Use SelectPrinter..

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

Accepted Solution

by:
chensu earned 50 total points
ID: 2740411
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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Find boost header files using gnu make (MinGW) on Win 7 11 78
c++ mixing int and strings in multi array 8 71
C++ get user from AD  (VS6) 7 53
Path to  STL Map header file 1 41
Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now