Data Matrix 2D Barcodes in Crystal Reports 8.5 or Older
Data Matrix Barcodes in Crystal Reports 8.5 or Older
- The following tutorial shows how to create Data Matrix barcodes in older versions of Crystal Reports.
- Crystal Reports 8.5 and older do not support fields and formula outputs longer than 254 characters.
- To encode a Data Matrix barcode, we must split the formula into multiple parts.

Step 1. Add a new formula
- In Field Explorer right-click on "Formula" and select "New".
- Hint: If you do not see Field Explorer, choose it from Standard Toolbar (see screenshot).

- Name the formula. Remember to add "...Part0" suffix at the end of the formula name.

Step 2. Copy the formula text
- Copy the contents of this text into the Formula Editor:
Step 3. Edit the formula
- Replace "Hello World..." with your own data.
- Set other properties (Quiet Zone, Error Correction, etc) now as well.

Step 4. Create Copies of Formula
- Create two exact copies of the formula we created in step 3. Add the suffix Part1 and Part2 to formula names, correspondingly.

Step 5. Edit partNumber
- Set partNumber to 1 in formula MyDataMatrixBarcode2_Part1
- Set partNumber to 2 in formula MyDataMatrixBarcode2_Part2

Step 6. Insert a Text Object
- Insert Text Object into your report.

Step 7. Add Formulas to Text Object
- Drag all three formulas from Field Explorer to the Text Object.

Step 8. Set Font Properties
- Change the font to: BCW_DM and set the point size.
NOTE: For smaller barcodes, you can set the point size as low as 2pt

Step 9. Ensure the text object grows (if necessary)
- Right-click and select Format Text...

- Select Can Grow on the Common tab.

That is it! The barcode is generated
- Click on Preview ...
