Solved

Printer Settings

Posted on 2000-04-22
2
169 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
Comment Utility
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
Comment Utility
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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
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 viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

771 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

7 Experts available now in Live!

Get 1:1 Help Now