|
|
|
Print Data Matrix Barcode In Crystal Reports
Data Matrix is a kind of 2D barcode that is able to encode more than 1000 alphanumeric characters.
To print Data Matrix barcode in Crystal Reports, you need Barcodesoft UFL (User Function Library) and BCSDatamatrix barcode font.
1. Open DOS prompt. Go to the following folder
C:\Program Files\Common Files\Barcodesoft\FontUtil
Type in the following DOS command to register crUFLbcs.dll
regsvr32 crUFLbcs.dll

2. If you are using Crystal Reports 9 or above, please open BCSDataMatrix.rpt from
C:\Program Files\Barcodesoft\datamatrixFont folder.
Crystal Reports has a string length limitation of 255 characters for formula field.
Therefore we have to split Data Matrix codewords into seperate parts, and concatenate them in a Text Object before apply font BCSDataMatrix.
Right click Formula Fields from Field Explorer View, choose "New..." from the context menu as shown below

Create more formula fields as listed below if returned codewords are more than 255. Then put them all in the same Text Object.
BCSDataMatrixEncodeCR({Test.Data}, '1')
BCSDataMatrixEncodeCR({Test.Data}, '2')
BCSDataMatrixEncodeCR({Test.Data}, '3')

For more information about Data Matrix barcode, please click Data Matrix.
|