Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Switch between paper trays in vb6 using printform method

Posted on 2007-12-04
1
Medium Priority
?
255 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 200 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

Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

Question has a verified solution.

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

In this post we will learn different types of Android Layout and some basics of an Android App.
If you are a mobile app developer and especially develop hybrid mobile apps then these 4 mistakes you must avoid for hybrid app development to be the more genuine app developer.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Progress
Suggested Courses

704 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