Laser Printing Escape Sequences
For laser printing, the user will need to set up an escape sequence that matches the W-2 form to print. A dedicated page for creating an appropriate escape sequence is included as one of the W-2 Update Report Definition (PYW2UP) pages.
Other options for escape sequences are:
- A configuration file identified with NULP common code for the laser printer.
- PYFG/PY601C common code may define an escape sequence.
Following are some examples for PCL 5 compliant printers (most HP printers). These are example sequences and may not be appropriate for your printer. For specific commands to manage your particular printer, please refer to the product reference guide for that printer.
Esc E | Resets the printer |
Esc &l0O | Orientation of printer - portrait |
Esc &l8D | *8 lines per inch |
Esc &l30Z | Top offset registration - moves printing 30 decipoints lower (720 decipoints/inch). The effect of this escape sequence will move all printing down on all pages. |
Esc &a1C | Start at Column # - starts at column 1 |
Esc (s10H | Pitch - sets 10 characters per inch |
Esc &a0R | Sets printer to top of page - line 0. |
Esc &k2G | Sets the printer to do a line feed and carriage return. This is necessary for some printers if it prints the first line only or prints the second line indented and third line indented even more. |
Esc&f99y4X | Activates ELF form if applicable. |
Trying to show escape sequences can be confusing. Lower case "L" resembles the number one. All occurrences of "&l" in these examples are "&" and lower case "L." All other occurrences of "1" are really the number one.
The above escape sequence values in your PYFG/PY601C common code would look like the following example (Note: The Esc character is not a printable character and is represented with "*" in the example):
*E&l0O*&l8D*&l30Z*&a1C*(s10H*&a0R*&k2G*&f99y4X
If only the first line of the W-2 data is printing for the 2X2 format, the PY601 override may need to be utilized. Example escape sequence:
%12345X&l0O*&l8D*(s12H*&l104F*&a155V*&f99y4X*&k2G