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
ASPDaddyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

DansDadUKCommented:
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).
0
ASPDaddyAuthor Commented:
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
0
DansDadUKCommented:
>> ... Do you know how I can dtermine the Tray ID for the Printer Trays ...

HP used to publish this detail in the User Guide manual appropriate to each printer model, but they don't seem to do it for all current models.

You could use the Tray Map utility in the PCL Paraphernalia application (available via http://www.pclparaphernalia.eu ) to generate test jobs which include user-specified identifiers, to try to find out the relevant tray identifier(s) on a 'try this and see what happens' basis (but bear in mind that an unsupported identifier value will cause the printer to use either the default tray, or perhaps the last used tray).


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

No.
I don't think that any standard drivers provide any way that an application (e.g. Word) can use driver PassThrough mechanisms to insert Page Description Language constructs, specific to PCL XL, at the correct point in a PCL XL print stream, due to the highly structured nature of this PDL.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ASPDaddyAuthor Commented:
Very clear!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Applications

From novice to tech pro — start learning today.