Solved

Switch between paper trays in vb6 using printform method

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This article will show, step by step, how to integrate R code into a R Sweave document
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…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

747 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now