Element barcode

LANSA Integrator

Element - barcode

The barcode element creates a barcode.

Width and height take precedence over scale. Width and height must be greater than 0 to take effect.

Syntax:

Element

Attributes

Value

Notes for Element/Attribute/Value

barcode

x1

integer

Default. 0.

y1

integer

Default. 0.

width

integer

Default. 0.

height

integer

Default. 0.

type

CODE39

 

CODE39EXT

 

CODE128

Default.

CODE128UCC

 

EAN8

 

EAN13

 

CODABAR

 

POSTNET

 

PLANET

 

INTER25

 

QRCODE

Java JRE 6.0 or higher is required.
Requires non zero width and height attribute.

value

string

Barcode value.

supplement

string

Supplement value.
Used by EAN13.

scale

integer

Default. 110.
Not used by QRCODE.

rotation

integer

Default. 0.

align.

left

 

center

Default.

right

 

start

string

Default. A.
Used by CODABAR.

stop

string

Default. B.
Used by CODABAR.

start-stop

boolean

Default. true.
Show start/stop text.
Used by CODE39, CODE39EXT and CODABAR.

alt-text

string

Barcode alternative text.

 

Example

 

<barcode x1="20" y1="700" type="CODE39" value="12345ABCD"/>

<barcode x1="20" y1="600" type="CODE39EXT" value="12345" alt-text="some text

<barcode x1="20" y1="500" type="CODE128" value="12345aBCD"/>

<barcode x1="20" y1="400" type="CODE128UCC" value="12345aBCD"/>

<barcode x1="20" y1="300" type="EAN8" value="1234567"/>

<barcode x1="20" y1="200" type="EAN13" value="641718311430"/>

<barcode x1="20" y1="100" width="200" height="50" type="EAN13" value="641718311430" supplement="54995"/>

<barcode x1="20" y1="700" type="CODABAR" value="4015638721939"/>

<barcode x1="20" y1="600" type="POSTNET" value="123456789"/>

<barcode x1="20" y1="500" type="PLANET" value="123456789"/>

<barcode x1="20" y1="400" type="INTER25" value="41-1200076041-001"/>

<barcode x1="20" y1="300" type="INTER25" value="411200076041001"/>

<barcode x1="20" y1="600" type="QRCODE" width="100" height="100" value="SOME TEXT"/>