Solved

Switch between paper trays in vb6 using printform method

Posted on 2007-12-04
1
223 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
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
split53 challenge 7 95
detecting  the added row index in a datagridview 3 70
Can we place a tooltip on the actual vb6 form 5 41
Send outlook email from VBS Script 2 28
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

785 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