BizCode Barcode Generator for Crystal Report
The most advanced barcode control for Crystal Report
Quick Overviews
  • Crystal Report .NET SDK
  • Linear & 2D barcode support
  • .NET 2.0/3.0/4.0 support
  • Support C#, VB.NET, etc
  • Multiple file formats support
Barcode Crystal Report > Barcode in Crystal Report > 2D > .NET Data Matrix in Crystal Report
How to Generate Data Matrix in Crystal Reports
Data Matrix is a high-density 2D barcode symbology capable of storing 2000 characters. The information to be encoded can be text or numeric data. Because of its high encoding ability, it is often used on small area of square modules with a unique perimeter pattern.
Crystal Report Data Matrix Generator SDK is a robust and reliable barcode component to freely generate Data Matrix and other 20+ barcodes in Crystal Reports programs. It is compatible with all languages and locales including Double Byte versions of Windows.
Crystal Report Data Matrix Generator 100% runs in VB.NET and C# to create dynamic Data Matrix in Crystal Report. Valid parameters of barcode are pre-configured for easy generation. Users may feel easy to change these parameters if needed via VB.NET and C#.
With Crystal Report Data Matrix Generator, you don`t need to know much knowledge of Data Matrix and generate excellent barcode in your Crystal Report projects. This page gives you a detail guide of how to generate Data Matrix in Crystal Report with Barcode Generator for Crystal Report.
Data Matrix Generator for Crystal Report Features
Encodable Characters Support to encode:
- Standard ASCII characters 0-127 (default: ISO/IEC 646)
- Extended ASCII characters 128-255 (default: ISO/IEC 8859-1)
Lower ASCII Support Allow easy encoding of functions such as tab or return in Data Matrix
High-quality Images The generated Data Matrix can be saved as high quality Gif, Tiff, Bmp, Png, or Jpeg images
Programming Languages Easy to be used in VB.NET, C#, Managed C++ and Borland Delphi for .NET
High Flexibility Barcode properties are flexible and easy to be changed to make desired Data Matrix
C# Source Code C# source code is available with purchase of the developer license
Data Matrix Generator for Crystal Report Requirements
Windows Operating System
-Microsoft Windows 7
- Windows Server 2008
- Windows Vista
- Windows Server 2003
- Windows XP
Development Environments
- .NET 2.0/3.0/4.0
- C#, VB.NET, Managed C++, Borland Delphi for.NET
- Visual Studio 2005/2008/2010
- Crystal Report (Runtime)
Install Data Matrix Generator for Crystal Report
  1. Download Barcode Generator for Crystal Report Free Trial and unzip;
  2. Add "BusinessRefinery.Barcode.web.dll" to your ASP.NET project reference;
How to Generate Data Matrix in Crystal Report
  1. Download Barcode Generator for Crystal Report and unzip. In the demo file, there are a "BarcodeDemoData.mdb" that including "ID", "CustomerId", and "CustomerName", and a "CustomerDataSet.xsd".
  2. Open your Visual Studio, create a new web project with "ASP.NET Crystal Reports Web Site" as template;
  3. Create a new report "Using the Report Wizard", and choose "Standard", and click "OK";
  4. In "Data" form, double click "Create New Connection", and expand "ADO.NET".
  5. In "ADO.NET" form, select "CustomerDataSet.xsd" file in your downloaded package, and click "Finish" button.
  6. Back at the "Data" form. Double click "table", then click "Next". In the "Fields" form, double click or drag and drop "ID", "CustomerID", "CustomerName" to "Fields to Display" and click "Finish";
  7. In CrystalReport1.rpt, add field "Barcode" to the report Section 3;
  8. Add "BusinessRefinery.Barcode.web.dll" to your project reference in "Solution Explorer";
  9. Right click "Default.aspx" in "Solution Explorer" and choose "View Code";
  10. Copy the following code accordingly and run the project.
Sample Coding fo Generating Data Matrix in Crystal Report
Run the Web Project:
protected void Page_Load(object sender, EventArgs e)
OleDbConnection aConnection = new OleDbConnection(
"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:/Demo/BarcodeDemoData.
OleDbDataAdapter dataAdapter = new OleDbDataAdapter
("select * from Customer", aConnection);
DataSet ds = new DataSet();
//add a new column named "Barcode" to the DataSet, the new column data
type is byte[]
ds.Tables[0].Columns.Add(new DataColumn("Barcode", typeof(byte[])));
Matrix barcode = new Matrix();
barcode.Type = BarcodeType.Datamatrix;
foreach (DataRow dr in ds.Tables[0].Rows)
barcode.Data = (int)dr["CustomerId"] + "";
byte[] imageData = barcode.drawBarcodeAsBytes();
dr["Barcode"] = imageData;
Protected Sub CrystalReportViewer1_Init(ByVal sender As Object, 
ByVal e As System.EventArgs) Handles CrystalReportViewer1.Init
Dim aConnection As New OleDbConnection
Data Source=C:/Demo/BarcodeDemoData.mdb"
Dim dataAdapter As New OleDbDataAdapter("select * from Customer",
Dim ds As New DataSet()
'add a new column named "Barcode" to the DataSet, the new column
data type is byte[]
ds.Tables(0).Columns.Add(New DataColumn("Barcode", GetType(Byte())))
Dim barcode As New Matrix()
barcode.Type = BarcodeType.Datamatrix
For Each dr As DataRow In ds.Tables(0).Rows
barcode.Data = CInt(dr("CustomerId")) & ""
Dim imageData As Byte() = barcode.drawBarcodeAsBytes()
dr("Barcode") = imageData
End Sub