Intermec PB22 Fingerprint Developer's Guide (old) - Page 98

Checking the Current Position

Page 98 highlights

Chapter 6 - Designing Bar Code Labels DIR 4 ABCDE ABCDE DIR 1 Field origin DIR 3 ABCDE ABCDE DIR 2 Feed direction Print Directions in Fingerprint: In this example, the DIR command rotates the text field around anchor point 1. Checking the Current Position As you position and specify fields in the label design, you may need to determine the position of the insertion point after a field is printed. Use the PRSTAT function to determine the current position of the insertion point. For example, after creating a single-line text field, you can use PRSTAT to return the exact location of the insertion point. By default the next new object is placed at the insertion point unless a new position is specified: • In print direction 1 or 3, PRSTAT (1) returns the absolute value of the insertion point along the X-axis, whereas PRSTAT (2) returns the Y-value of the last executed PRPOS statement. • In print direction 2 or 4, PRSTAT (2) returns the absolute value of the insertion point along the Y-axis, whereas PRSTAT (1) returns the X-value of the last executed PRPOS statement. In the next example, an unknown number of logotypes will be printed with 10-dot spacing across the media path. The size of the logotype is not known. To avoid an "field out of label" error, the PRSTAT command is used to check the width of the printed fields. If the printed width exceeds 550 dots, the printer continues printing on the next label: 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" 82 Intermec Fingerprint Developer's Guide

  • 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
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187

Chapter 6 — Designing Bar Code Labels
82
Intermec Fingerprint Developer’s Guide
Print Directions in Fingerprint:
In this example, the DIR command rotates the text field
around anchor point 1.
Checking the Current Position
As you position and specify fields in the label design, you may need to determine the
position of the insertion point after a field is printed. Use the PRSTAT function to
determine the current position of the insertion point. For example, after creating a
single-line text field, you can use PRSTAT to return the exact location of the
insertion point. By default the next new object is placed at the insertion point unless
a new position is specified:
In print direction 1 or 3, PRSTAT (1) returns the absolute value of the insertion
point along the X-axis, whereas PRSTAT (2) returns the Y-value of the last
executed PRPOS statement.
In print direction 2 or 4, PRSTAT (2) returns the absolute value of the insertion
point along the Y-axis, whereas PRSTAT (1) returns the X-value of the last
executed PRPOS statement.
In the next example, an unknown number of logotypes will be printed with 10-dot
spacing across the media path. The size of the logotype is not known. To avoid an
“field out of label” error, the PRSTAT command is used to check the width of the
printed fields. If the printed width exceeds 550 dots, the printer continues printing
on the next label:
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”
Field origin
ABCDE
ABCDE
ABCDE
ABCDE
DIR 1
DIR 2
DIR 3
DIR 4
Feed direction