WD: PCL Escape Codes to Use with the PRINT FieldLast reviewed: February 5, 1998Article ID: Q135569 |
The information in this article applies to:
SUMMARYThis article lists some of the escape codes that can be used in the PRINT field for printing documents to Hewlett-Packard (HP) or HP-compatible printers. For example, the construction {PRINT 27"&l2S"} at the top of a page causes a duplexing printer to begin printing on both sides of the page.
MORE INFORMATIONNote: Not all of these commands are supported on all HP printers, nor are they guaranteed to work exactly as described on non-HP printers. Check your printer's manual or technical support line to be sure. For further information on HPCL escape sequences, refer to your HP printer's user's manual or the "Hewlett-Packard PCL 5 Printer Language Technical Reference Manual," available from Hewlett Packard. Printer Command Function # refers to 27"E" Printer Reset 27"&l#X" Number of copies 1 to 32,767 27"&l#G" Output bin 1 = upper bin 2 = lower bin 27"&l1T" Job separation 27"&l#S" Selects single or 0 = single-sided duplex (two-sided) 1 = duplex, long-edge binding printing and choice 2 = duplex, short-edge binding of binding 27"&l#H" Paper source 0 = current source 1 = upper tray 2 = manual feed - paper 3 = manual feed - envelope 4 = lower tray or mp tray 5 = envelope feeder or optional 500- sheet cassette (HP 4/4M) 6 = envelope feeder (HP 4/4M) 27"&l#A" Paper Size 1 = executive 2 = letter 3 = legal 26 = A4 Envelope Size 100 = Commercial B5 80 = Monarch 81 = Commercial 10 90 = DL 91 = International C5 27"&l#O" Orientation 0 = portrait 1 = landscape 2 = reverse portrait 3 = reverse landscape 27"&l#G" Output Destination 1 = Upper tray 2 = Rear tray 27"*t#R" Resolution 75 = 75 dpi 300 = 300 dpi 600 = 600 dpi (on supported printers) KEY --- 27 The Escape character; just type 27. " Opening or closing quotation marks for the command string (must be "straight" quotes, not "smart" or "curly" quotes). & Ampersand. l Lowercase letter "L". # Option specifier, a number.E, X, G, etc. Printer command specifier. NOTES:
REFERENCESFor more information about PRINT fields, do one of the following for your version of Word:
Word 97Click the Office Assistant, type "PRINT field," click Search, and then click to view " Field codes: Print field." NOTE: If the Assistant is hidden, click the Office Assistant button on the Standard toolbar. If Microsoft Help is not installed on your computer, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q120802 TITLE : Office: How to Add/Remove a Single Office Program or Component Word 95On the Help menu, click Answer Wizard. On the Answer Wizard tab, type "PRINT field", and click Search. Click the "Field Codes: Print field" topic and then click Display.
Word 6.0On the Help menu, click "Search for help on". On the Index tab, type "PRINT field", and then click Display.
|
Additional query words:
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |