.NET Data Matrix barcode generator for c#, vb.net
How to generate, print data matrix 2d barcode label using c#, vb.net, in asp.net, winodws application, with free c# example


Free c#, vb.net examples to generate, print data matrix 2d barcode in asp.net, c#, vb.net, crystal reports.



  • Fully compatible with ISO/IEC 16022 (2nd edition) for valid Data Matrix output
  • Barcode creation control entirely developed in managed C#.NET
  • Completely integrate with Microsoft Visual Studio 2005/2008/2010
  • 2D Data Matrix barcode image generation in .NET applications
  • Provide complete developer guide for 2D Data Matrix generation in .NET
  • Advanced and reliable 2D Data Matrix barcode generating DLL used world-wide
  • Provide royalty-free and perpetual developer licenses for customers
Data Matrix Generator for .NET Overview
Data Matrix Generator is barcode generation functionality included in KA.Barcode for .NET Suite that can integrate professional 2D Data Matrix barcode images in .NET Windows applications, ASP.NET web pages, Crystal Reports, SSRS, and other .NET projects.
2D Data Matrix Barcode Introduction
Data Matrix is a two-dimensional (2D) barcode symbology used in many industries. It is recommended by the United States' Electronic Industries Alliance (EIA) for labeling small electronic components. Data Matrix is the only 2 dimensional barcode defined in GS1 System of Standards.
Data Matrix Encodable Characters
  • Standard ASCII characters: 0-127 including A-Z, a-z, 0-9 and special characters
  • Extended ASCII characters: 128-255
Download .NET Data Matrix Barcode Generator
We offer free trial package download of KA.Barcode for .NET Suite to allow valid Data Matrix barcode generation in .NET projects. Useful items are included in the unzipped package(KeepAutomation.Barcode.Crystal.dll, KeepAutomation.Barcode.Crystal.dll, KeepAutomation.Barcode.SSRS2005.dll, KeepAutomation.Barcode.SSRS2005CRI.dll, KeepAutomation.Barcode.SSRS2008.dll, KeepAutomation.Barcode.SSRS2008CRI.dll, KeepAutomation.Barcode.Web.dll and KeepAutomation.Barcode.Windows.dll).
Generate Data Matrix Barcode in .NET Using C# or VB.NET
  1. Move to the Visual Studio Solution Explorer window, and add "KeepAutomation.Barcode.Windows.dll" or "KeepAutomation.Barcode.Web.dll" as reference of the project.
  2. Use the following C# or VB sample code to generate Data Matrix barcode image.
C# Sample code
     BarCode datamatrix = new BarCode();
datamatrix.Symbology = KeepAutomation.Barcode.Symbology.DataMatrix;
datamatrix.CodeToEncode = "Data Matrix";
datamatrix.X = 3;
datamatrix.Y = 3;
datamatrix.generateBarcodeToImageFile("c://barcode-datamatrix-csharp.png");

VB Sample code
     Dim datamatrix As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode

datamatrix.Symbology = KeepAutomation.Barcode.Symbology.DataMatrix
datamatrix.CodeToEncode = "Data Matrix"
datamatrix.X = 3
datamatrix.Y = 3
datamatrix.generateBarcodeToImageFile("c:/barcode-datamatrix-vbnet.png")

Generate Data Matrix Barcode in ASP.NET Project
  1. Unzip the downloaded .NET Data Matrix barcode generator trial package.
  2. Open your Visual Studio to create a new ASP.NET project and copy "barcode.aspx" and "barcode.aspx.cs" in "barcode" folder to your project folder.
  3. Browse and select "KeepAutomation.Barcode.Web.dll" and add it to your project reference.
  4. Drag and drop "BarCodeControl" in Toolbox to the aspx page for your Data Matrix barcode generation.
  5. Select DataMatrix barcode symbology in Properties window.
  6. Debug and you will see the generated Data Matrix barcode image.
Data Matrix barcode image generation in Microsoft Internet Information Services
  1. Unzip the downloaded trial package and copy the "barcode" folder in it to your IIS web application folder.
  2. Establish a virtual directory (named as "barcode") in your IIS and restart it.
  3. Open your browser and navigate to:
    "http://YourDomain:port/barcode/barcode.aspx?symbology=101&code-to-encode=0123456789&x=3&y=3".
  4. Or you can also use the following image tag to insert barcodes in html or aspx pages:
    <img src="barcode/barcode.aspx?symbology=101&code-to-encode=0123456789&x=3&y=3"/>
  5. Reset properties of the generated Data Matrix barcode image in the above URL.
Generate Data Matrix Barcode in .NET WinForms
  1. Locate KeepAutomation.Barcode.Windows.dll to the Toolbox in your Visual Studio.
  2. Then, drag and drop the BarCodeControl from the Toolbox into the form.
  3. Switch to the Properties window and change "Symbology" to "DataMatrix".
  4. Now, you can see the created Data Matrix barcode image.
  5. Or you can also customize your Data Matrix barcode image through the Properties window.
Generate Data Matrix Barcode in .NET Reports

Detailed Guide for Generating 2D Data Matrix Barcode Image in Crystal Reports
With this 2D Data Matrix barcode generation guide, uses can easily insert user-defined Data Matrix barcode image in Crystal Reports.
Detailed Guide for Generating 2D Data Matrix Barcode Image in RDLC Reports
With this 2D Data Matrix barcode generation guide, uses can easily insert user-defined Data Matrix barcode image in RDLC Reports.
Detailed Guide for Generating 2D Data Matrix Barcode Image in Reporting Services
With this 2D Data Matrix barcode generation guide, uses can easily insert user-defined Data Matrix barcode image in Reporting Services.
Free Trial DownloadC#/VB Data MatrixFor Web Data MatrixFor Windows Data MatrixFor Reports Data MatrixUsing C#Using VB.NETPDF417 for .NETQR Code for .NETmoreCodabar for .NETCode 39 for .NETCode 128 for .NETEAN-8 for .NETEAN-13 for .NETEAN 128 for .NETIntelligent Mail for .NETInterleaved 2 of 5 for .NETISBN for .NETITF-14 for .NETRM4SCC for .NETUPC-A for .NETUPC-E for .NETmore
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.