Microsoft KB Archive/75758

= Automatic Paper Tray Switching on HP LaserJet in WinWord =

Article ID: 75758

Article Last Modified on 11/16/2006

-

APPLIES TO


 * Microsoft Word 1.0 Standard Edition
 * Microsoft Word 1.1 Standard Edition
 * Microsoft Word 1.1 Standard Edition
 * Microsoft Word 2.0 Standard Edition
 * Microsoft Word 2.0a
 * Microsoft Office Word 2003
 * Microsoft Word 2.0c
 * Microsoft Word 6.0 Standard Edition
 * Microsoft Word 6.0a
 * Microsoft Word 6.0c
 * Microsoft Word 95 Standard Edition
 * Microsoft Word 95a
 * Microsoft Word 97 Standard Edition

-



This article was previously published under Q75758



Word 6.0, 7.0, 97
To switch paper trays in Microsoft Word versions 6.0, 7.0, and 97, choose Page Setup from the File menu, then choose the Paper Source tab. You can select a paper source in the First Page and Other Pages boxes. The options that appear in these boxes are those available for the printer currently selected in the Print dialog box. In the Apply To box, select the Whole Document or the This Point Forward option. If you select This Point Forward, Word will force a section break (which will also produce a page break).

Word 2.x
To switch paper trays in Microsoft Word for Windows version 2.0, choose Page Setup from the Format menu, then choose the Paper Source button. You can select a paper source in the First Page and Other Pages boxes. The options that appear in these boxes are those available for the printer currently selected in the Print Setup dialog box. In the Apply To box, select the Whole Document or the This Point Forward option. If you select This Point Forward, Word will force a section break (which will also produce a page break).

Word 1.x
When you are printing a Word for Windows document, you can switch paper trays automatically on a Hewlett-Packard (HP) LaserJet printer by using the PRINT field and HP LaserJet escape codes.



MORE INFORMATION
You can use the PRINT field, described on page 104 of the &quot;Microsoft Word for Windows User's Reference,&quot; to embed printer control codes in a Word document. These codes go directly to the printer's processor. Enter the PRINT field as the very first item on the first page (or first of a series of pages) that you want to print from another tray. To do this, use the following steps:

 Press CTRL+F9, and type PRINT between the braces ({}). Press the SPACEBAR once.  Type the escape character, 027, and type a double quotation mark. Enter the code used to switch trays, and another double quotation mark. The entire decimal code for Paper Feed Selection is as follows: 027&quot;&l#H&quot; The result should appear as follows: {PRINT 027&quot;&l#H&quot;} where &quot;#&quot; is the numeric code of the feed option desired. The following is the list of the feed option numeric code and the corresponding feed option:   Code    Feed Option ---

0      page eject 1      upper tray feed 2      manual feed 3      manual envelope feed 4      lower tray 6      envelope feeder (lower cassette on IIIP) 

For example, the complete code to change the paper feed to manual is: {print 027&quot;&l2H&quot;} The inserted fields will command the printer to print the following pages from the bin specified by the numeric code of the feed option inside the field. Consult the HP Technical Reference for other available codes and how to use them.

This method was tested on the HP IIP and IIIsi, and the Panasonic KX-P4450 and 4450i. The codes work as advertised with the HP printers; however, the codes cause the Panasonic printers to print reversed.

