Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multi tray within VB

Status
Not open for further replies.

mohanq

Technical User
Jun 12, 2002
8
US


I am creating an application for printing out Data Reports in vb.

My problem is to control the printer paper bins programmatically during printing so that first page goes on paper from bin #1 and middle pages goes on paper from #2 and so on.

I tried with Paperbin property with HP Deskjet 670C printer.

Any ideas or product recommendations?

Thanks in advance,
mohan.



 

set up 2 print drivers each of them prints to a specific bin
then switch between each driver as needed with the API SetDefaultPrinter.

Or if you really want to use one print driver you will have a lot of API calls to make just to be able to attempt this feat and you will need a PS driver for your printer.

Here is a start at the API's you will need to do it this way.

DeviceCapabilities
OpenPrinter
GetPrinter
SetPrinter
ClosePrinter
CopyMemory

you will also have to look into a...

DEVMODE structure (TYPE)
PRINTER_DEFAULTS structure (TYPE)
ACL "" ""
SECURITY_DESCRIPTOR "" ""
PRINTER_INFO_1 (1-5) "" ""

Good Luck!!!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top