7.6

Table Of Contents
BarType: Code:
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')
ShowBarcode2of5(procedure)
Displays a specified string as a Standard 2 of 5 barcode.
Syntax
showbarcode2of5( str, barwidth, readable, bearers)
Arguments
str
Value of type string to display as a barcode.
barwidth
Width of one barcode bar, in mils (0.001 inch).
readable
Boolean that enables display of the human readable portion of the barcode
bearers
Boolean that enables bearer bars surrounding the barcode
Code Sample Example
©2010 Objectif Lune Inc - 590 -