Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Specify destination paper tray

Posted on 2002-04-25
Medium Priority
Last Modified: 2008-03-10
we currently specify which paper tray to select paper from with this
m_pImageDevMode->dmDefaultSource = pDoc->m_StatementPageDef.GetImagePaperTray();

How would I specify the destination paper tray?
Question by:jeremy630
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
  • 3
  • 2
LVL 49

Accepted Solution

DanRollins earned 200 total points
ID: 6969514
Not many printers have more than one output tray, and I can find nothing about it in the DEVMODE structure.

However, I assume that it is possible to selct an output tray in the printer settings dialog, right?  If so, then you can probably learn how that printer driver keeps track of where to output by examining the various fields of the DEVMODE structure before and after you manually modify the settings for the printer.  My guess is that it would be in the device-specific bytes that follw the DEVMODE struture.  The dmDriverExtra field will be non-zero in that case.

From the text of your comment, I assume that you already know how to access the DEVMODE structure, but if you need help with that, I can post some code.
This is a read herring.  Its title is
   How to Print a Report to Different Paper Trays (Q200546)
but it really tells you how to print FROM specified paper bins.  I put it here just to confuse you:

This article describes a way to access printer private info.  I'm not sure if it is applicable to you:

-- Dan

Expert Comment

ID: 7036261
Please update and finalize this old, open question. Please:

1) Award points ... if you need Moderator assistance to split points, comment here with details please or advise us in Community Support with a zero point question and this question link.
2) Ask us to delete it if it has no value to you or others
3) Ask for a refund so that we can move it to our PAQ at zero points if it did not help you but may help others.



** Mindphaser - Community Support Moderator **

P.S.  Click your Member Profile, choose View Question History to go through all your open and locked questions to update them.
LVL 49

Expert Comment

ID: 7037883
Lacking addiitonal input, I can't be cetain that my comments would solve the problem.  However, I believe that my suggestions should be helpful to others who view this as a PAQ.

-- Dan
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.


Author Comment

ID: 7039330
I couldn't find a DEVMODE field that allowed me to specify the output tray.  I did find out that our application was looking in the Printing Preferences which is found by right clicking on the printer (Win 2000) not just under Printer properties.
LVL 49

Expert Comment

ID: 7039754
Why have you insulted me with a C?  

You ask a question, then never return to it and never provide any feedback and don't give me a chnce to explain how to get to the settings that are in the Printing Preferences.  And then you slap my face with a bad grade.  Are you just naturally mean?

-- Dan

Author Comment

ID: 7040060
I didn't realize I was giving a A, B, C grade.  A solution to my problem didn't really exist.  I didn't think it was fair to give you 100 points and also select the option stating that your answer was excellent, or whatever the "A" option would have been.  Would it have been nicer of me to give you an "A" and 50 points rather than a "C" and 100 points?

Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

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…
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…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

618 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