Using the Barcode Fonts in Crystal Reports
- Open the Field Explorer in Crystal Report.
- Create a new formula by right clicking Formula Field and select New.
- Give the new formula a name (e.g barcode39).
- You will now see the Formular Workshop. Set the syntax of the formula to 'Basic Syntax'.
- Copy the formula for the barcode that you intend to use from the file CR_Formula.txt (in the Resource subdirectory) to the Crystal Report's Formula Editor. For example, if you want to use Code39, copy the Encode_Code39 formula and paste it into the Formula Editor.
- Modify the 'data = "12345678' statement so that it connects to your data source. For example, change the statement to data = { Employee.Name }.
- Save the formula and drag it to your report to create a formula field.
- Set the font of the formula field to the appropriate barcode font. For example, for Code 39, the font can be CCode39_S2 or CCode39_S3. (Note the font preview in the drop down list of Crystal Reports may appear as barcodes)
- Click on the Preview tab to see the generated barcode.







