6.0

Table Of Contents
146
Language Reference
4
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:
Code Sample Example
This example prints a Code 128 barcode.
Note: 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')
ShowBitmap (procedure)
Displays a bitmap resource.
Syntax
showbitmap( resname, resolution, width, height[, transparent[, duotone]] )
BarType: Code:
0Code 39
1 Code 128
2UPC_A
3UPC_E
4UPC/EAN 8
5UPC/EAN 13
6PostNet
7 PDF-417