Azalea Software, Inc. www.azalea.com Print PDF417 Barcodes in Microsoft Visual Basic Applications

You can print PDF417 bar codes in Visual Basic programs. This page explains how to do it using our free PDF417 demo font. The same techniques work with the full retail version too.

PDF417 are sophisticated barcodes, far more complex than 1D symbologies like UPC, Code 128, Code 39, etc. PDF417 includes compression, error correction, and have many permutations and flavors. Our encoder does all of this for you. Pass it the correct parameters and you get the barcode you want.

If you don't already own our PDF 417 package you can download and install our PDF417 demo.

Our PDF417 encoder, PDF417MBA.DLL, is called by a Visual Basic wrapper. DemoPDF417MBA.DLL and DemoPDF417BMP.DLL will be installed into your \WINDOWS\SYSTEM or \WINNT\SYSTEM32 directory. The VB wrapper, DemoPDF417Font.dll and DemoPDF417bitmap.dll, are ActiveX DLL's written and compiled with VB6 and may be put wherever you want.

Creating PDF 417 bar codes using fonts

In Visual Basic, create a new .exe project. Add a reference to DemoPDF417Font.DLL which should be in \Program Files\Azalea\Demo PDF417\VB wrappers directory.

On your form (form1), create two text boxes (text1 and text2) and a command button (command1).

Set both text boxes' multiline property to true. text1 holds your input data and text2 holds the output data. Format text2 in one of the AzaleaMBA fonts using a small point size.

Give the function three parameters:
PDF417 barcodes in Visual Basic

YourInput is the content of text1. The AspectRatio determines the shape of the symbol. The SecurityLevel determines how robust the symbol is against misreads.

example: text2.text = AzaleaPDF417MBAregularDEMO("test", 6, 3)

Creating PDF 417 bar codes using bitmaps

In Visual Basic, create a new .exe project. Add a reference to DemoPDF417bitmap.DLL which should be in \Program Files\Azalea\Demo PDF417\VB wrappers directory.

On your form (form1), create a text box (text1), a picture box (picture1), and a command button (command1).

Set the text box's multiline property to true. text1 holds2 your input data and picture1 will load the bar code from a temp file.

Give the function three parameters:
PDF417 barcodes in Visual Basic

YourInput is the content of text1. The AspectRatio determines the shape of the symbol. The SecurityLevel determines how robust the symbol is against misreads. FullPath is the path to the bitmap with the bar code.

example: AzaleaPDF417BMPregularDEMO ("test", 6, 3, "C:\test.bmp")
                    picture1.Picture = LoadPicture("C:\test.bmp")


Need help? Email us at azalea at azalea dot com or call 1.206.341.9500