7.5

Table Of Contents
Syntax
showbarcode( string )
Arguments
string
Value of type string to display as a barcode.
showbarcode needs 3 additional parameters before it can display the barcode. These parameters must be set before calling
showbarcode, using the following variables:
BarWidth
Measure value setting the width of each bar, in inches.
BarHeight
Measure value setting the height of each bar, in inches.
BarType
Integer value specifying the type of barcode to print. Current possible values include:
BarType: Code:
0 Code 39
1 Code 128
2 UPC_A
3 UPC_E
4 UPC/EAN 8
5 UPC/EAN 13
6 PostNet
7 PDF-417
Code Sample Example
This example prints a Code 128 barcode.
The BarWidth, BarHeight and BarType variables must be created exactly as shown here, with the same case changes in
the variable names.
Example
define(&BarWidth,measure,0.012)
define(&BarHeight,measure,1.000)
define(&BarType,integer,1)
%Set bar color to black and display barcode
setfillcolor([100,100,100,100])
showbarcode('Bar 128')
©2010 Objectif Lune Inc - 336 -