Microsoft KB Archive/22597

Entering Printer Control Codes in a Document

PSS ID Number: Q22597 Article last modified on 11-02-1994

1.x 2.x 3.x 4.00 5.00 5.50 6.00

MS-DOS

= SUMMARY =

You can embed printer instructions such as escape codes and control codes within a Word document; however, it is not a recommended procedure. Rather, modifying the printer driver to contain the desired codes is a more efficient and safer procedure.

To enter a code in a document, use the ALT key in conjunction with the corresponding decimal equivalents of the characters you want to send. For example, an escape character is entered by pressing ALT+27. The decimal value 27 must be entered from the numeric keypad. If the ASCII character is available on the keyboard, you can type it in directly, rather than entering the decimal equivalent of G. For example, ESC+G is entered as ALT+27G.

In Word 5.50, make sure the NUM LOCK is on before holding down the ALT key and typing the number from the numeric keypad. Otherwise, the program will beep and will not accept the input.

If a code is to apply to an entire document, open a new line at the beginning of the file and enter the code on this line. Printers determine the end of a control code differently. An uppercase letter often signals to the printer that the code is terminated and that what follows is text. Check your printer’s documentation for its proper control code syntax and rules.

KBCategory: kbother KBSubcategory: Additional reference words:

=
================================================================ Copyright Microsoft Corporation 1994.