Solved

Printer Settings

Posted on 2000-04-22
2
172 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…

856 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