Link to home
Start Free TrialLog in
Avatar of ASPDaddy
ASPDaddyFlag for United Kingdom of Great Britain and Northern Ireland

asked on

How to insert printer commands into a MS Word doc to determine printer tray

I have a HP Laser Jet Pro M401dne and P3015X with 2 and 3 trays respectively.

How do I insert Printer control codes into the document to send a print job to multiple trays e.g page 1 to tray 1 page 2 to tray 2.

We are using a PCL5 Driver for the M401dne and PCL6 for the P3015X, botha are installed on the Server (windows 2003) . The clients are mostly Windows 7 Pro and a few XP Pro running MS Office 2010 Pro.

Thanks
Avatar of DansDadUK
DansDadUK
Flag of United Kingdom of Great Britain and Northern Ireland image

Use the Word PRINT field code mechanism; see http://office.microsoft.com/en-gb/word-help/field-codes-print-field-HA102017458.aspx?CTT=5&origin=HA102110133

For example:

{ PRINT 27"&l4H" }

will pass the PCL5 escape sequence
<Esc>&l4H

Open in new window

(which should cause the printer to select the source tray with identifier 4 - note that this is an internal identifier, and not the same as as the external, user visible, tray number); these identifiers are not necessarily the same on different printer models.

You will not be able to use this technique with a PCL6 driver, since the PCL6 (PCL XL) Page Description Language is totally different to the escape-based PCL5 PDL; there is no equivalent mechanism (it would be too complex to do, due to the nature of the PCL XL PDL).
Avatar of ASPDaddy

ASKER

Do you know how I can dtermine the Tray ID for the Printer Trays

Do you know any alternative approach for PCL6 to send output to a pre-determined tray

Thanks
ASKER CERTIFIED SOLUTION
Avatar of DansDadUK
DansDadUK
Flag of United Kingdom of Great Britain and Northern Ireland 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
Very clear!