Solved

Switch between paper trays in vb6 using printform method

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Best way to parse out a json string in VB6? 10 116
Not needed 13 95
Add and format columns in vb6 7 47
MacOS and programming in React 7 28
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

867 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

21 Experts available now in Live!

Get 1:1 Help Now