?
Solved

Printer Settings

Posted on 2000-04-22
2
Medium Priority
?
175 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 150 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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them.

Question has a verified solution.

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

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
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.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
Suggested Courses
Course of the Month8 days, 15 hours left to enroll

764 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