Automatic Paper Tray Switching on HP LaserJet in WinWord

ID: Q75758

The information in this article applies to:

SUMMARY

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 "Microsoft Word for Windows User's Reference," 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:

1. Press CTRL+F9, and type PRINT between the braces ({}).

2. Press the SPACEBAR once.

3. 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"&l#H"

   The result should appear as follows:

      {PRINT 027"&l#H"}

   where "#" 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"&l2H"}

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.

REFERENCES

"Microsoft Word for Windows User's Guide," version 2.0, pages 218-242

"Microsoft Word for Windows User's Reference," version 1.x, page 104

"The LaserJet Handbook" (Bennett & Randall, Brady Books, 1990, page 370

KBCategory: KBSubcategory: kbfield Additional query words: 1.0 1.1 1.1a 1.0 1.10 7.0 word95 word7 word6 6.0a 6.0c 6.0 6.0a 6.0c winword2 1.10a 2.0 7.0a word97 winword

Keywords          : kbprint kbfield 
Version           : 1.x 2.x 6.0 6.0a 6.0c 7.0 7.
Platform          : WINDOWS

Last Reviewed: February 6, 1998