Using Barcode on BI Publisher

A common requirement for BI Publisher templates is to set one or more fields as barcodes.

To be able to print a field as a barcode, you need to have installed the barcode font in the environment you generate the PDF output. The most common barcode fonts are 128R00.TTF (supported algorithms: code128a, code128b, and code128c), B39R00.TTF (supported algorithms: code39, code39mod43) and UPCR00.TTF (supported algorithms: upca, upce).

The desired font needs to be installed on the development computer and also into the servers of all the environments where the PDF will be generated.

Steps to generate a barcode field:

1) Insert into the BIP template the XML field you need to show as a barcode on the place you want to display it.

2) Edit the field properties to set the codification algorithm you want to use (in this example: font 128R00.TTF, algorithm code128a):

<?format-barcode: NAP_F4211_ITM_ID34;'code128a'?>


- First argument is the XML field to be displayed as a barcode.

- Second argument is the algorithm used.

3) Just for this field, choose a font that will not be used in any other place of the template. In this example, Batang.TTF font was selected only for this field.

4) Go to Advanced Properties of the Microsoft Word document and add a new custom font map.


In the custom tab of the Advanced Properties, set the following values:

- Name: put the font you chose for the barcode field

xdo-font.Batang.normal.normal

- Value: put the barcode font, specifying the path where it is installed.

truetype.C:\Fonts\128R00.TTF


When you upload the template into the EnterpriseOne servers of each environment, remember to change the ‘Value’ field setting the path where the font is installed in the corresponding server and save this change pressing ‘Modify’.

Contact us at any moment you need help!