Solved

Switch between paper trays in vb6 using printform method

Posted on 2007-12-04
1
245 Views
Last Modified: 2011-10-03
I want to switch between two print trays as printing is done programmatically in VB6 without user intervention.  The user must not be involved in the choice of print trays.  We are using the PrintForm method  in the following command  FormContract.PrintForm.  If one uses the following method  Printer.Print , then one of the available properties is the PaperBin property.  That property is not available using method PrintForm.  
Is there a way to easily switch between paper trays?  Please illustrate with code example if it is possible.
If it is not easily done,  is there a dll or ocx available to do this?  
0
Comment
Question by:mensch47
[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
1 Comment
 
LVL 31

Accepted Solution

by:
Frosty555 earned 50 total points
ID: 20408360
The PrintForm() method will print to the default printer as defined in Control Panel. This means it will print with the default settings as well, including which paper tray to print from.

So, since the visual basic Printer object is a reference to the default printer.... have you tried just changing the Printer.PaperBin property, and then calling PrintForm()?
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

This is about my first experience with programming Arduino.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Introduction to Processes
Suggested Courses

627 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