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

Sending Printer Commands

by Allen Wyatt
(last updated January 2, 2018)

1

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. Display the Insert tab of the ribbon.
  3. In the Text group, click the Quick Parts tool and then click Field. Word displays the Field dialog box. (See Figure 1.)
  4. Figure 1. The Field dialog box.

  5. 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.)
  6. Select Print from the Field Names list.
  7. 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.
  8. 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 (9567) applies to Microsoft Word 2007, 2010, and 2013. You can find a version of this tip for the older menu interface of Word 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

Removing Duplicates Based on a Partial Match

Some types of data may have certain fields that contain partially identical information. In such cases you may want to ...

Discover More

Hyperlink Formatting

Word, as you type, normally formats hyperlinks automatically. If you don't like the way that hyperlinks look in a ...

Discover More

Figuring Out the Low-Score Winner

Need to figure out the lowest score in a range of scores? Here's the formulas to get the information you need.

Discover More

Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!

More WordTips (ribbon)

Collating Copies

If you are printing more than one copy of a multi-page document, it would be great if Word could print them in complete ...

Discover More

Printing a Short Selection

Want to print just a selection from within your document? It's easy to do when you print using the Print dialog box.

Discover More

Printing Hidden Text

One of the formatting attributes you can add to text is to make it "hidden," which means you can control whether it is ...

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

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. Maximum image size is 6Mpixels. 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 5 + 9?

2018-11-30 14:19:09

Elliott M Coyne

What would these commands look like? For example I am trying to send PCL XL commands using this method but all I get from my printer is PCL IllegalTag errors.


This Site

Got a version of Word that uses the ribbon interface (Word 2007 or later)? This site is for you! If you use an earlier version of Word, visit our WordTips site focusing on the menu interface.

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.