Intermec PC43d Fingerprint Developer's Guide (PC23d, PC43d/t, PM23c, PM43, PM4 - Page 91

Checking the Size and Position of a Field, Creating Single-Line and Multi-Line Text Fields

Page 91 highlights

Chapter 6 - Designing Bar Code Labels 10 PRPOS 0,50 20 PRIMAGE "GLOBE.1" 30 X%=PRSTAT(1) 40 FOR A%=1 TO 10 50 Z%=PRSTAT(1) 60 PRPOS Z%+10,50 70 PRIMAGE "GLOBE.1" 80 IF Z%>550 THEN GOTO 100 90 NEXT 100 PRINTFEED 110 END RUN Checking the Size and Position of a Field When printing a label, Fingerprint instructions are processed into a bitmap pattern that can be sent to the printhead. This process is called rendering. Use the RENDER OFF command to process instructions without printing anything. By combining RENDER OFF with various PRSTAT variables, you can determine the insertion point location, and thus the size and position of the field, without actually printing the field on a label. Use RENDER ON to restore printing as usual. Creating Single-Line and Multi-Line Text Fields A single-line text field consists of one or more alphanumeric characters on the same line. A multi-line text field consists of up to 20 lines of text with up to 300 singlebyte characters per line. In addition to the standard positioning statements PRPOS, ALIGN and DIR, a single-line or multi-line text field can contain the following commands: • FONT - Specifies the font to be used for the field. • NORIMAGE and INVIMAGE - Sets regular or inverted printing. • PRTXT - Specifies input data for the text field. • PRBOX - Specifies the size of the box in which a text field is printed. Specifying a Typeface with FONT Specifies the single- or double-byte font to use for text. The default font is Univers at 12-point size, and no slant. The specified font is used for all text until a new FONT statement is executed. Inverting Black and White Printing with NORIMAGE or INVIMAGE Normally, text is printed in black on the white background of the print media. Use the INVIMAGE command to print text in white on a black background. The size of the background is decided by the character cell. A NORIMAGE statement is only needed when changing back from INVIMAGE printing. Fingerprint Developer's Guide 79

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163

Chapter 6 — Designing Bar Code Labels
Fingerprint Developer’s Guide
79
10
PRPOS 0,50
20
PRIMAGE “GLOBE.1”
30
X%=PRSTAT(1)
40
FOR A%=1 TO 10
50
Z%=PRSTAT(1)
60
PRPOS Z%+10,50
70
PRIMAGE “GLOBE.1”
80
IF Z%>550 THEN GOTO 100
90
NEXT
100
PRINTFEED
110
END
RUN
Checking the Size and Position of a Field
When printing a label, Fingerprint instructions are processed into a bitmap pattern
that can be sent to the printhead. This process is called rendering.
Use the RENDER OFF command to process instructions without printing
anything. By combining RENDER OFF with various PRSTAT variables, you can
determine the insertion point location, and thus the size and position of the field,
without actually printing the field on a label. Use RENDER ON to restore printing
as usual.
Creating Single-Line and Multi-Line Text Fields
A single-line text field consists of one or more alphanumeric characters on the same
line. A multi-line text field consists of up to 20 lines of text with up to 300 single-
byte characters per line.
In addition to the standard positioning statements PRPOS, ALIGN and DIR, a
single-line or multi-line text field can contain the following commands:
FONT - Specifies the font to be used for the field.
NORIMAGE and INVIMAGE - Sets regular or inverted printing.
PRTXT - Specifies input data for the text field.
PRBOX - Specifies the size of the box in which a text field is printed.
Specifying a Typeface with FONT
Specifies the single- or double-byte font to use for text. The default font is Univers at
12-point size, and no slant. The specified font is used for all text until a new FONT
statement is executed.
Inverting Black and White Printing with NORIMAGE or INVIMAGE
Normally, text is printed in black on the white background of the print media. Use
the INVIMAGE command to print text in white on a black background. The size of
the background is decided by the character cell. A NORIMAGE statement is only
needed when changing back from INVIMAGE printing.