Link to home
Start Free TrialLog in
Avatar of adamgernon
adamgernon

asked on

Printing to different trays.

Has anyone got any examples of printing to different trays for example for customer A Print 1st page to tray 1, rest on tray 2 for customer B print 1st page on tray 3, rest on tray 4...

thanks and regards,

Adam
Avatar of Arthur_Wood
Arthur_Wood
Flag of United States of America image

I am not aware of ANY way to do what you think you want to do.  A print job is sent to the Printer as a SINGLE BATCH job, to be executed by the printer.  And as it is a SINGLE entity when it gets to the printer, all pages in that entity will be treated the same.  Anything else would be a very special case of the way the Print spooler behaves for that specific printer, and I doubt that there is any way to alter that behavior in your code.
Avatar of Anthony Perkins
How are you printing?  Are you using the Printer object?
Avatar of PBuck
PBuck

We send various single print jobs to different trays all the time while printing forms (letterhead, colored seperator, and of course white).

We do this by sending raw PCL commands to the printer, so I know that if you are using a PCL/PostScript printer - you should be able to have the same functionality.  But, we are using a program to convert an older XES language to PCL - so I do not know the exact PCL command or script.

What I would suggest is to use the following code/API to send raw characters to the printer:
http://www.planet-source-code.com/xq/ASP/txtCodeId.12410/lngWId.1/qx/vb/scripts/ShowCode.htm

*You will just have to determine the proper PCL commands.

btw - is the printer programmable?  Such as determining tray1=Letterhead, tray2=color ?

Hope this helps!~
Avatar of adamgernon

ASKER

It is through the word object model...
No ... the code above sends raw text thru to your desired queue (whether local or located on the LAN).

As for the printer being programmable, their are some larger models such as Lexmark and Xerox that allow programming of the trays.  So whenever it recieves an tray command, it will pull from the desired tray.
ASKER CERTIFIED SOLUTION
Avatar of Anthony Perkins
Anthony Perkins
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial