"Creating Barcodes with Macros and Merge," WordPerfect the Magazine,
April 1992, pp 27 - 32.

The U.S. Postal Service has installed barcode and optical character
readers nationwide to increase the efficiency of their operations.  If
you use barcodes meeting Postal Service guidelines, you can speed up
your mail and realize potential savings in your mailing costs.

The technique as described in "WordPerfect the Magazine" (WPtM) uses a
merge file to generate a barcode and is compatible with WordPerfect 5.1
releases dated 1/19/90 or later.  The merge file retrieves from disk
previously defined files that designate each zip character, and
incorporates the result into the output of a merge.  Though the
technique can work with previously defined secondary merge files, the
zip code must be in its own field.  An example secondary merge file is
included.

I strongly recommend reading the article from WPtM for background and
formatting suggestions.  You can also request information from your
local post office on the POSTNET barcode system.  This merge file
follows the POSTNET barcode format, not the Advanced Bar Code (ABC)
system.

I take no credit or responsibility for the operation of this POSTNET
barcode generator and have provided it only to save yourself time and
trouble from having to generate it yourself.

Patrick R. Kane
pat@ncel.navy.mil

P.S.  WordPerfect 5.1 Release 3/9/92 comes with a POSTNET.WPM macro
that can create POSTNET barcodes.  This POSTNET macro generates
barcodes very differently than the WPtM merge technique.  If you only
need one or two barcodes, the POSTNET macro will let you generate them
in the document you are working on.  The POSTNET macro will also
generate barcodes for secondary merge files; however, the generated
barcode is stored as a field in your secondary merge file.  The problem
with this POSTNET macro technique is that the size of your secondary
merge file increases drastically.  Registered WordPerfect users can
retrieve POSTNET.WPM from the WordPerfect Customer Service Bulletin
Board (801-225-4414).



Brief installation and operation instructions:

1)  Make a subdirectory in your WordPerfect 5.1 directory, i.e.

        MD C:\WP51\POSTNET

2)  Copy all of the files into that subdirectory
3)  Use BARCODE.PRI and BARCODE.SEC as examples for format of your
primary and secondary merge files.

NOTE:  If you install the BARCODE.xxx files into a subdirectory other
than C:\WP51\POSTNET, you must edit the BARCODE.PRI file to reflect
where the files reside.


Required WP51 files:
BARCODE  PRI     primary merge file format (uses envelope for example)
BARCODE  0       represents zip character 0
BARCODE  1       represents zip character 1
BARCODE  2       represents zip character 2
BARCODE  3       represents zip character 3
BARCODE  4       represents zip character 4
BARCODE  5       represents zip character 5
BARCODE  6       represents zip character 6
BARCODE  7       represents zip character 7
BARCODE  8       represents zip character 8
BARCODE  9       represents zip character 9
BARCODE  10      represents zip character 0
     note that BARCODE.10 was not created in the magazine 
     article, but is required for proper operation

Supporting WP51 files:
BARCODE  SEC     example secondary merge file
LONG-BAR WPM     used to create BARCODE.xxx file
SHORTBAR WPM     used to create BARCODE.xxx file
