Code 39 Barcodes in Crystal Reports
- This tutorial shows how to add Code 39 barcodes to your Crystal Reports.
- See the video or simply follow the steps below.
![](https://media.barcodewiz.com/images/5f630167-c3c4-4ad4-a94c-72df08d11206-c39_crystal_thumb.png)
Step 1. Add a new formula
- Open the field Explorer: View > Field Explorer
![](https://media.barcodewiz.com/images/5df42716-d27f-4348-8397-e4bca6d53f5c-c39_CR-0002.png)
- Select Formula Fields and click on New
![](https://media.barcodewiz.com/images/9cd2e8e3-fc46-44f5-b3ce-c41b599a3121-c39_CR-0001.png)
- Enter a name for the new formula.
![](https://media.barcodewiz.com/images/bcde52a3-73ff-4455-947b-94c5470069d7-c39_CR-0003.png)
Step 2. Locate the Code 39 Functions
- Ensure the functions are installed. May be listed under one of these three locations:
Functions > Additional Functions
Functions > Additional Functions > Visual Basic UFLs (u2lcom.dll)
Functions > Additional Functions > COM and .NET UFLs (u212com.dll) - Enter the function name and argument into the editor:
Code39 ({Items.item_barcode}). - If your data field is numeric, it should be convert to text:
Code39 (ToText({Items.item_price}, 0, ''))
![](https://media.barcodewiz.com/images/dbb6aee4-c11e-48d4-b0a3-f5dc1810915a-c39_CR-0004.png)
Step 3. Add a barcode to the report
- Drag the formula from Field Explorer to the report
![](https://media.barcodewiz.com/images/fd9435ff-8b84-427f-90ae-78322c653662-c39_CR-0005.png)
- Change the font properties to:
Font Name: BCW_Code39h_1
Font Size: 48
![](https://media.barcodewiz.com/images/4a43b47f-5bd2-43fe-a5e0-0f694a3e1ec5-c39_CR-0006.png)
The report is now ready
- Click on Preview to see or print it.
![](https://media.barcodewiz.com/images/a80ea1ba-7b1c-403f-b14f-42ba67208903-code39_ccr7.png)