Microsoft KB Archive/63909

Printing Lower ASCII Characters on the HP LaserJet

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

4.00 5.00

MS-DOS

= SUMMARY =

To print special ASCII characters below 32 on a Hewlett-Packard (HP) LaserJet, a special control sequence must be embedded in the Character Translation Table of the printer driver (.PRD file). The control sequence is as follows:

^[&p1X

Note: ^[ is the sequence for escape. The left and right angle brackets “<>” are provided for clarity and are not part of the command sequence.

For example, to print a smiley face on an HP LaserJet Series II, the control sequence is as follows (assuming the currently selected symbol set is PC-8):

[&p1XA

The decimal code for the smiley face is 1. Since it is below 32, the appropriate code is “^A” (according to the ASCII chart).

Any ASCII character below 32 usually is reserved for control codes and cannot be printed except with a special control sequence. This control sequence varies from printer to printer. In the HP LaserJet printer reference manual, this control sequence is called “Transparent Print Data.”

KBCategory: kbprint KBSubcategory: Additional reference words: ============================================================================= Copyright Microsoft Corporation 1994.