Barcode for Crystal Report > Generate Barcode in Crystal Report > 2D > .NET Data Matrix in Crystal Report

Crystal Reports Data Matrix Barcode Generator
Create, print 2d Data Matrix barcode label in report viewer in .net without native font ufl. Free Download.


How to generate, embed, print Data Matrix barcode image labels in .net project without using font. Free download.



  • Fully customizable Barcode Control to create powerful reporting solution
  • Entirely compliant with .NET Framework 2.0, 3.0, 3.5 and 4.0
  • Create Data Matrix in Crystal Reports using Visual Studio 2005, 2008 and 2010
  • Generate square (10X10 to 144X144) or rectangular (8X18 to 16X48) Data Matrix easily
  • Offer flexible data mode options, including ASCII, Auto, Base256, C40 etc.
  • Rotate created Data Matrix barcode image in 0, 90, 180 and 270 degrees
  • Provide free trial package with optional C#.NET & VB.NET demo codes
Data Matrix Barcode Generator for Crystal Reports Overview
KA.Barcode for Crystal Reports helps you easily add barcode generation capability into Crystal Reports. .NET programmers have full control of properties of created Data Matrix barcode image. Barcode generation SDK is a code product 100% created in managed C#.NET.
Data Matrix Barcode Symbology Overview
Data Matrix is a two-dimensional / 2D barcode symbology which was designed in 1989. It is a high-density barcode either in a square or rectangular form and widely used for marking small items.
Data Matrix Valid Character Set
  • Standard ASCII values: 0-127
  • Extended ASCII values: 128-225
Download Data Matrix Barcode Control for Crystal Reports
Trial version of Data Matrix Barcode Control for Crystal Reports is provided on our website. Users are free to download this trial package which contains the following important items.
  • KACrystalData.mdb
  • ProductDataSet.xsd
  • KeepAutomation.Barcode.Crystal.dll
  • End User License Agreement
  • User Manual & Order Page
Please note that Data Matrix barcode image generated with this trial version of Barcode Control for Crystal Reports may include a "KA Barcode" watermark. So users can not apply this trial version to commercial applications.
How to Add Data Matrix in ASP.NET Using Crystal Reports SDK
  1. Download the trial version of Crystal Reports Barcode Generator and unzip it.
  2. Open your Visual Studio and create a new web project with "ASP.NET Crystal Reports Web Site" as template.
  3. Create a new report "Using the Report Wizard", choose "Standard", and click "OK".
  4. In "Data" form, double click "Create New Connection", and expand "ADO.NET".
  5. Add "ProductDataSet.xsd" file in "ADO.NET" form, and click "Finish" button.
  6. In "Data" form, add table "Product" and click "Next". In "Fields" form, add all three columns in the table "Product" and click "Finish".
  7. In CrystalReport1.rpt, add field "Barcode" to the report Section 3.
  8. Add "KeepAutomation.Barcode.Crystal.dll" to your project reference.
  9. Copy the following demo codes and debug to view generated Data Matrix barcode images.
C# Sample code
     protected void Page_Load(object sender, EventArgs e)
{
OleDbConnection aConnection = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:/KACrystalData.mdb");
aConnection.Open();

OleDbDataAdapter dataAdapter = new OleDbDataAdapter("select * from Product",aConnection);
DataSet ds = new DataSet();
dataAdapter.Fill(ds);

//Add the Barcode column to the DataSet
ds.Tables[0].Columns.Add(new DataColumn("Barcode", typeof(byte[])));

BarCode datamatrix = new BarCode();
//Barcode settings
datamatrix.Symbology = KeepAutomation.Barcode.Symbology.DataMatrix;
datamatrix.X = 6;
datamatrix.Y = 6;
datamatrix.LeftMargin = 24;
datamatrix.RightMargin = 24;
datamatrix.TopMargin = 24;
datamatrix.BottomMargin = 24;
datamatrix.ImageFormat = System.Drawing.Imaging.ImageFormat.Png;

foreach (DataRow dr in ds.Tables[0].Rows)
{
datamatrix.CodeToEncode = (int)dr["ProductId"] + "";
byte[] imageData = datamatrix.generateBarcodeToByteArray();
dr["Barcode"] = imageData;
}
CrystalReportSource1.ReportDocument.Load(Server.MapPath("CrystalReport1.rpt"));
CrystalReportSource1.ReportDocument.SetDataSource(ds.Tables[0]);
CrystalReportSource1.DataBind();

}
VB Sample code
     Protected Sub Page_Load(sender As Object, e As EventArgs)
Dim aConnection As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:/KACrystalData.mdb")
aConnection.Open()

Dim dataAdapter As New OleDbDataAdapter("select * from Product", aConnection)
Dim ds As New DataSet()
dataAdapter.Fill(ds)

'Add the Barcode column to the DataSet
ds.Tables(0).Columns.Add(New DataColumn("Barcode", GetType(Byte())))

Dim datamatrix As New BarCode()
'Barcode settings
datamatrix.Symbology = KeepAutomation.Barcode.Symbology.DataMatrix
datamatrix.X = 6
datamatrix.Y = 6
datamatrix.LeftMargin = 24
datamatrix.RightMargin = 24
datamatrix.TopMargin = 24
datamatrix.BottomMargin = 24
datamatrix.ImageFormat = System.Drawing.Imaging.ImageFormat.Png

For Each dr As DataRow In ds.Tables(0).Rows
datamatrix.CodeToEncode = CInt(dr("ProductId")) & ""
Dim imageData As Byte() = datamatrix.generateBarcodeToByteArray()
dr("Barcode") = imageData
Next
CrystalReportSource1.ReportDocument.Load(Server.MapPath("CrystalReport1.rpt"))
CrystalReportSource1.ReportDocument.SetDataSource(ds.Tables(0))
CrystalReportSource1.DataBind()

End Sub
For a demand of creating Data Matrix barcode in WinForms using this Crystal Reports Barcode Control, refer to related barcode generation guide here.
Data Matrix Barcode Properties
Free Trial DownloadCrystal Data MatrixData Matrix PropertiesUsing C#Using VB.NETUsing ASP.NETUsing .NET WinformsPDF417 for Crystal ReportQR Code for Crystal ReportmoreCodabar for Crystal ReportCode 39 for Crystal ReportCode 128 for Crystal ReportEAN-8 for Crystal ReportEAN-13 for Crystal ReportEAN 128 for Crystal ReportIntelligent Mail for Crystal ReportInterleaved 2 of 5 for Crystal ReportISBN for Crystal ReportITF-14 for Crystal ReportRM4SCC for Crystal ReportUPC-A for Crystal ReportUPC-E for Crystal Reportmore
KeepAutomation provides complete barcode automation solutions. We recommend the customers use high quality document controls: ASP.NET Document Viewer, ASP.NET MVC Document Viewer, Document Viewer ASP.NET C#, ASP.NET PDF Viewer, ASP.NET Word Viewer, ASP.NET Excel Viewer, ASP.NET PDF Editor, MVC PDF Viewer, ASP.NET Annotate PDF, c# pdf sdk, C# View, edit PDF online , C# Convert PDF to Tiff, C# Convert PDF to text, txt, .net imaging sdk, C# PDF metadata edit from RasterEdge.com.