?
Solved

Specify destination paper tray

Posted on 2002-04-25
6
Medium Priority
?
441 Views
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?
0
Comment
Question by:jeremy630
[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
  • 3
  • 2
6 Comments
 
LVL 49

Accepted Solution

by:
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:
http://search.microsoft.com/gomsuri.asp?n=2&c=rp_Results&siteid=us/dev&target=http://support.microsoft.com/support/kb/articles/Q200/5/46.ASP

This article describes a way to access printer private info.  I'm not sure if it is applicable to you:
http://search.microsoft.com/gomsuri.asp?n=1&c=rp_Results&siteid=us/dev&target=http://msdn.microsoft.com/library/en-us/wmeother/printer_0qwm.asp

-- Dan
0
 
LVL 6

Expert Comment

by:Mindphaser
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.

EXPERT INPUT WITH CLOSING RECOMMENDATIONS IS APPRECIATED IF ASKER DOES NOT RESPOND.

Thanks,

** 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.
0
 
LVL 49

Expert Comment

by:DanRollins
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
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:jeremy630
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.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7039754
jeremy630,
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
0
 

Author Comment

by:jeremy630
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?
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
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 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 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.
Suggested Courses
Course of the Month12 days, 15 hours left to enroll

777 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