Barcode Tools for Crystal Reports

Font barcodes

Font barcodes may be incorporated into any version of Crystal Reports using the barcode fonts supplied with Barcode Tools for Crystal Reports and the accompanying UFL (User defined function library). The fonts are UNAxx, UNBxx, UNCxx, UNDxx, UNExx and UNFxx, where the xx refers to the font weight. W fonts produce the full bar and space sizes and these fonts are installed by the setup program, while the R, N and T fonts produce bars in which the bar width has been reduced by 8, 12, 16 and 20% respectively. These reduced width fonts are not installed but may be found in the fonts folder in the Barcode Tools for Crystal Reports installation directory. They may be installed using the Fonts applet in the Windows Control Panel is required.

The sample report included with the kit is "Order Packing List.rpt", "Order Packing List2.rpt" or "Order Packing List3.rpt" depending on the version you installed and will be found in the cr subdirectory of the kits installation directory. This is a modified version of the "Order Packing List.rpt" report included with the Crystal Reports Xtreme Mountain Bike Inc samples. If you do not have the samples installed on your system then the modified sample report will not work and you should skip to the section "Creating a barcode on a report" below. The report displays barcodes using one of the UNxx barcode fonts installed on your system; if for any reason that font cannot be found then the the report will not display a barcode - but a collection of characters. (You can change the font used to display the barcode as described below, and the barcode will then display correctly.)

The "Order Packing Listx.rpt" sample may be run on a machine that contains a full Crystal Reports installation just by double clicking on the reprt file. A barcode is included on the report with its data taken from the one of the data fields.

Switching the report to Design view, Right-clicking on the barcode and selecting Edit Field Object from the drop-down menu displays the Function (DLUnibar) and parameters used to generate the barcode. The first parameter is the barcode data (a string), the second parameter is an integer that specifies the barcode type (code type 8 is Code 39), and the final parameter (normally 0) can be used to specify extra barcode features.

 

More:

Creating a font barcode on a report