Siebel Pharma Handheld Guide > Print Tagging Language > Control Positioning Tags >

SetX Tag


The SetX tag sets the printer head position along the X axis.

Usage

SetX is an absolute mode-only tag that can be used with the GetX, GetY, and SetY tags to control the position of the printer head. Use the SetX tag in conjunction with the Cell, Applet, and Lineto tags to position objects in the printable area.

SetX cannot be used to position static text because full-line text is meant for printing text across the full width of the page. It is recommended that you use the Cell tag to position text in the exact location.

Syntax

<TAG:SetX x="X">

Parameter
Description

TAG:SetX

(Required) Applet tag indicator.

x

(Required) String value or variable if used with GetX tag specifying where to position the printer head based on its distance to the right, in millimeter from the left margin of the paper.

Example

The following sets the printer head position to 100 millimeters from the left margin:

<TAG:SetX x="100">

If using SetX with the GetX and Offset tags, the following example sets the printer head position 40 millimeters to the right of the current printer head position. This means that if the current printer head position is 100 millimeters from the left margin, then the new printer head position is 140 millimeters from the left margin:

<TAG:GetX variable="posx">
<TAG:Offset variable="posx" offset="40">
<TAG:SetX x="<variable>posx">

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