Set Horizontal Format (SHF)

Table 1 describes the parameters that can be used with the SHF code point.

Table 1. Set Horizontal Format parameters
SHF parameter Name Range NetSpool default
MPP Maximum line length 1 - 255 80

(The administrator can change the default in the printer definition in the Printer inventory.)

LM SCS left margin (position of first column) 1 - MPP 1

(The administrator can change the default in the printer definition in the Printer inventory.)

RM SCS right margin (position of last column) LM - MPP MPP

(The administrator can change the default in the printer definition in the Printer inventory.)

HT SCS horizontal tab settings    

SHF can be converted to a sequence of PCL Left Margin and PCL Right Margin commands. The horizontal tab settings, if specified, are saved for use with the SCS Horizontal Tab control.

The definition in the Content column of Table 2 explains what values you can use in the corresponding column positions.

Table 2. Set Horizontal Format
Bytes Content
1 - 2 X'2BC1'
3 Count of bytes after byte 2. It must be in the range 1 - 255 (count includes itself).
4 (optional) MPP
  • 0 means to leave the hardware default
  • 1 - 255 are valid line lengths in the columns
5 (optional) LM
  • 0 means to leave the hardware default
  • 1 - MPP are valid column positions
6 (optional) RM
  • 0 means to leave the current MPP (hardware default or this command)
  • LM - MPP are valid column positions
7 - 257 (optional) HT
  • 0 is ignored
  • LM-RM are valid column positions