Please Note: This article is written for users of the following Microsoft Word versions: 97, 2000, 2002, and 2003. If you are using a later version (Word 2007 or later), this tip may not work for you. For a version of this tip written specifically for later versions of Word, click here: Sending Printer Commands.

Sending Printer Commands

by Allen Wyatt
(last updated January 7, 2017)

5

Word has an extensive range of field commands that can be used to increase the flexibility of your documents. One such field allows you to send commands directly to your printer, without interference from Word. To insert a Print field code in your document, follow these steps:

  1. Position the insertion point where you want the Print field to appear.
  2. Choose Field from the Insert menu. You will see the Field dialog box. (See Figure 1.)
  3. Figure 1. The Field dialog box.

  4. Make sure (All) is selected in the Categories list at the left side of the dialog box. (It should be selected by default when the dialog box is first displayed.)
  5. Select Print from the Field Names list.
  6. In the Field Code box, after the Print statement, enter the information you want sent directly to the printer. This information should be enclosed within quote marks.
  7. Click on OK.

This technique is great if there are some advanced features of your printer that you want to take advantage of. For instance, I have used this technique in several other WordTips issues to show how to send PostScript commands directly a printer.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (1107) applies to Microsoft Word 97, 2000, 2002, and 2003. You can find a version of this tip for the ribbon interface of Word (Word 2007 and later) here: Sending Printer Commands.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He  is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Deriving High and Low Non-Zero Values

When analyzing your numeric data, you may need to figure out the largest and smallest numbers in a set of values. If you ...

Discover More

Simulating Alt+Enter in a Formula

You can use the Alt+Enter keyboard shortcut while entering information in order to force your data onto multiple lines in a ...

Discover More

Automatically Advancing by a Month

Excel allows you to perform quite a few operations using dates in your worksheet. Sometimes, however, the answer may not be ...

Discover More

The First and Last Word on Word! Bestselling For Dummies author Dan Gookin puts his usual fun and friendly candor back to work to show you how to navigate Word 2013. Spend more time working and less time trying to figure it all out! Check out Word 2013 For Dummies today!

MORE WORDTIPS (MENU)

Printing Only Selected Pages

I often need to print only select pages of a document, rather than the whole thing. Word makes it easy to be judicious in ...

Discover More

Including a Printer's Name in a Footer

If you can produce output on a number of different printers, you may want Word to indicate on your printouts which printer ...

Discover More

Printing XML Tags

Word 2003 allows you to use and save your information in XML format. If you want to, you can have Word print a document's XML ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments for this tip:

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 7 + 8?

2017-02-26 12:04:56

GeordieLad

If I may add my two cents worth, I too would like to see some examples.

I need to program certain conditions to an old dot matrix printer (but it could equally apply to other, more modern, printers) and have all of the programming details - but they are in BASIC. I tried running these following an LPRINT after opening Windows cmd but this does not work (such DOS commands are not recognised by Windows). How do I translate those DOS statements into a form which Windows will recognise - and possibly into a form which can control the printer before Word does its worst?

I have absolutely no knowledge of Visual BASIC or other languages and am a bit long in the tooth to learn these. However, I'd like to be able to control my printer - and if Word would override my commands - stop it.

Any help will be appreciated.


2017-01-08 10:11:04

allen@sharonparq.com

You are correct; printer commands are going to be hardware specific. If you want examples of such commands, use the search box at the upper-right of this page and search for "print field". (Make sure you include the quote marks.)

-Allen


2017-01-08 05:22:54

Steve Wells

I'm curious what the printer commands would look like, though they are very possibly hardware specific.

Why would I want to send printer commands?
My printer has two printing trays (loaded with different kinds of paper) and an auxiliary tray. I'd like to be able to specify the tray to use for certain kinds of documents so that I don't have to set them manually each time I print a series of the same type.
Some are simplex on card stock in the auxiliary tray, others might be duplex from Tray 2, and so on.


2017-01-07 18:49:10

Bob

There is no explanation of what sending direct to the printer is about. Why would you want to do that? And what is the difference between direct to the printer and the normal way?


2017-01-07 14:22:37

Allan Poe

Since I doubt that many of us know what a Printer Command looks like, it would be helpful to give an example and where to find the Printer Commands.


Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.

Links and Sharing
Share