Relative Baseline Position
The baseline position corresponds to the y-pos position in PPFA and the inline position corresponds to the x-pos position.
If the baseline position is relative, the offset is measured as follows:
- For Page Header, the offset is relative to the top of the page.
- For Page Trailer, it is relative to the last Record processed; if there is none, it is relative to the top margin.
- For Group Header and Body, the offset is relative to the last Group Header or Body processed; if there is none, it is relative to the top margin.
- For Field, it is relative to the last Field or Body that was processed for print (whether or not data is printed).
For Example:
XLAYOUT text1
POSITION 6 mm 8 mm;
FIELD ATTR 'attr1' FONT FONT03;
FIELD ATTR 'attr2' FONT FONT03 POSITION 20 mm 5 mm;
FIELD ATTR 'attr3' FONT FONT03;
attr1 = abcdefg
attr2 = W
attr3 = hjkmnpOutput:abcdefg
Whjkmnp
In this case W is positioned at 6+20 mm across and 8+5 mm down and hjkmnp is positioned next to W. Since there is no POSITION specified for FIELD for attr3, its starting point is the current position after attr2 is printed.
If attr2 has no value:
attr1 = abcdefg attr2 = attr3 = hjkmnpOutput:
abcdefg
hjkmnp
In this case hjkmnp is positioned next to abcdefg but underneath, down 5 mm. Since there is no POSITION specified for FIELD for attr3, its starting point is the current position after attr2 is printed. When there is no data for attr2, the x position does not change from where it ended with attr1, but the y position moves down 5 mm.