How to Print Aztec Codes in Crystal Reports

A comprehensive developer's guide to integrating high-density 2D Aztec barcodes into your Crystal Reports using UFL functions.

1

Initialize Formula Field

Open your report in Crystal Reports. Navigate to the Field Explorer, right-click on Formula Fields, and select New....

Name your new field Aztec1 and click OK to enter the Workshop.

Creating a new Formula Field in Crystal Reports
2

Select the Aztec UFL Function

Locate the Barcodesoft Aztec encoding function within the function tree:

Functions List » Additional Functions » COM and .NET UFLs (u212com.dll) » Visual Basic UFLs

Double-click BCSAztecEncodeCR to insert it into your formula.

Aztec Code Crystal Reports UFL selection
3

Handle String Limits

Crystal Reports imposes a 254-character limit on individual formula fields. To encode large datasets into an Aztec Code, you must split the data across multiple formula fields.

Pro Tip: Calculate Required Fields

Use BCSAztecFormulaNoForCR({Your.DatabaseField}) to determine exactly how many formula fields are required for your specific data length.

Splitting Aztec Code into multiple formula fields
4

Format Text Object

  1. Insert a Text Object into your report.
  2. Drag and drop your Aztec formula fields (Aztec1, Aztec2, etc.) into the text object in order.
  3. Right-click the text object and select Format Field.
  4. Set the font typeface to BcsAztec.
Formatting the Aztec Code font Final Aztec Code output in Crystal Reports