(800) 631-LOGO
Using Barcodes in OpenVMS Applications
1. Follow the installation procedures provided for Logos.
2. Font installation... read application note \AN{GEN-1} "Downloading: Basic Strategies".
·
For self-downloading custom applications:
·
plan to download the fonts at the beginning of each print job. If no other application uses the fonts,
delete them at the end of the job to conserve printer memory.
·
For applications which using VMS
$PRINT/FORM
, see application note \AN{VMS-1} "Using VMS as a Font
Loader":
·
store the fonts in
SYSDEVCTL.TLB
, and define a FORM which downloads the font module (see
application note \AN{VMS-2}).
·
within your print job (either as a
/SETUP
module, or from your application), assign the downloaded
Font ID to SGR(18) and print.
Building Your Application
1. set initial printing conditions and download necessary fonts
2. (begin a page)
3. send "begin TEXT" sequence
4. set text on the page
5. send "begin BARCODE" sequence
6. set barcode text
7. (end of page)
8. (end of job)
The portions of the document which set either normal text or barcode text should contain positioning commands
in addition to the actual text. It is recommended that you use decipoint or pixel measurements (as opposed to
characters) for positioning, as the font(s) being used for text will probably not have the same character size as
the barcode fonts.
Basic tools:
PostNet Application
Code39 Application
1. Basics
Establish a set of control sequences to initialize printing and turn barcode printing on and off. When
switching between fixed and proportional fonts, the LN03 may retain spacing parameters from the previously
invoked font. To avoid this, specify the spacing to be used when switching fonts.
"initialization sequence"
DECATFF (assign SGR(14))
<DCS> 1 ; 14 | RELITE0L02SK00GG <ST>
DECATFF (assign SGR(18))
<DCS> 1 ; 18 | UBAR39PF02SK00GG <ST>
"begin TEXT" sequence