Siebel Consumer Goods Handheld Guide > Print Tagging Language > Control Positioning Tags >

Offset Tag


The Offset tag adds a value to a number value in a variable.

Usage

Use the Offset tag to perform (positive or negative) offset variable calculations. Offset can be used with SetX and SetY to position the printer head. Special variable names _X and _Y are reserved variables which indicate the current x and y coordinates of the printer head position. These variable names can be used to offset current printer head coordinates by a specified number value.

Syntax

To use this tag, use the following syntax:

<TAG:Offset variable="VARIABLE NAME" offset="NUMBER VALUE">

Parameter
Description

TAG:Offset

(Required) Applet tag indicator.

variable

(Required) Name of the variable to be offset. _X and _Y can be used to offset the current printer head position.

offset

(Required) Number value with which to offset the variable. This can be a positive or negative value.

Example

The following examples yield the same result. The examples place the printer head position at
(+40,-40) from the current head position (_X, _Y). If the current printer head is (100,50), then this means that the new printer head position is (140,10):

<TAG:GetX variable="posx">

<TAG:GetY variable="posy">

<TAG:Offset variable="posx" offset="40">

<TAG:Offset variable="posy" offset="-40">

<TAG:SetX x="<variable>posx">

<TAG:SetY y="<variable>posy">

<TAG:Offset variable="_X" offset="40"> 

<TAG:Offset variable="_Y" offset="-40">

Siebel Consumer Goods Handheld Guide Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.