<AT>
<< Click to Display Table of Contents >> Navigation: Common vpxPrint tags > Position within the page > <AT> |
The AT tag sets the current coordinates to an absolute point in the page.
This point is 'margin-independent'; the writing is done at the exact physical position in the page, according to printers margins.
Syntax : <AT= [ row expression ] [ , column expression ]>
Expressions are decimal values:
•an absolute X,Y coordinate expressed in the value indicated by <UNITS> tag,
•a relative to the current point expression (in <UNITS> units),
•a predefined bookmark in the page #n,
•Omitted: in this case the corresponding value remains unchanged.
Examples:
<UNITS=INCHES>
•<AT=3,5> sets the current cursor at 3 inches from the top, 5 inches from the left.
•<AT=,6.3> leaves the row unchanged and positions the column to 6.3 inches
•<AT=+2,-1.5> sets the row at the current position + 2 inches, the column at the current column – 1.5 inches.
•<AT=#10,+1> sets the cursor at the same row than the bookmark #10 and add 1 inch to the current column position.
•<AT=,+1> leaves the row unchanged and add 1 inch to the column position.
Absolute position
It's sometimes useful to specify a precise position for printing on forms, labels, or cheques.
The <AT> tag uses the value of the <UNITS> to set the cursor.
<UNITS=MM><AT=10,10> sets the cursor at 10mm from the top, 10mm from the left
<UNITS=INCH><AT=1.5,1> sets the cursor at 1.5 inch from the top, 1 inch from the left.