How to Generate Data Matrix in ASP.NET Application

How to Insert & Create 2D Data Matrix Barcode Images in ASP.NET Web Projects
  • Completely compatible with the latest ISO Data Matrix Specification and GS1 specifications
  • Easy to integrate Data Matrix 2d barcode generation features into ASP.NET websites
  • Support Data Matrix generation and property customization in Microsoft Internet Information Services (IIS)
  • Support Data Matrix displaying in all major browsers, including Chrome, Internet Explorer, Firefox, Opera, etc
  • Use Visual C#, VB.NET programming to print Data Matrix barcodes in ASP.NET web forms
  • Various barcode dimension setting options including width, height, quiet zone, font, resolution, orientation, etc
  • Generated Data Matrix bar code images can be printed and saved for use in other development environments
ASP.NET Data Matrix Barcode Generator Introduction
Data Matrix barcode generation SDK is a barcoding functionality of KA.Barcode for ASP.NET, a powerful barcode generating control library for high-quality Data Matrix image output in ASP.NET websites/ web pages/ webform.
2D Data Matrix Overview in ASP.NET
Data Matrix, also named ECC200, 2D Data Matrix barcode, is a two-dimensional matrix barcode commonly used to mark small items. Being space-efficient, Data Matrix is recommended by America's EIA for labeling small electronic components.
Data Matrix Encodable Characters in ASP.NET
  • All ASCII characters, including 0-9, A-Z, a-z and special characters like $ , % + / : * etc
  • Images, double-byte characters, binary data and 8 bit values
Download Data Matrix Barcode Generator for ASP.NET
Please download KA.Barcode for ASP.NET demo package freely. Developers are able to use the demo version to generate Data Matrix barcode images in ASP.NET. For the generated barcode images contain a "KA Barcode" watermark, this trial version only can be used for demo applications. It includes:
  • KeepAutomation.Barcode.Web.dll
  • A "barcode" folder including barcode.aspx.cs & barcode.aspx
  • End user license agreement, user manual and the order page
How to Generate Data Matrix With ASP.NET Web Control
  1. Open your Visual Studio and generate a new ASP.NET web project.
  2. Unzip the demo package and copy "barcode.aspx" and "barcode.aspx.cs" in "barcode" folder to the target folder.
  3. Go to "Toolbox" in your Visual Studio and locate "KeepAutomation.Barcode.Web.dll" to it.
  4. Drag and drop "BarCodeControl" under "Toolbox" into the web form.
  5. Choose DataMatrix barcode type in "Properties" panel.
  6. Customize the generated Data Matrix barcode image through the "Properties" panel.
How to Generate Data Matrix in C# or VB.NET Programming
It is simple to produce and stream Data Matrix barcode image into ASP.NET web form applications.
  1. Step 1: Add reference "KeepAutomation.Barcode.Web.dll" to your ASP.NET Web project.
  2. Step 2: Copy the following C#/VB.NET demo barcode program to stream Data Matrix barcode in ASP.NET webforms/websites.
C# Sample code
     BarCode datamatrix = new BarCode();
datamatrix.Symbology = KeepAutomation.Barcode.Symbology.DataMatrix;
datamatrix.CodeToEncode = "DataMatrix";
datamatrix.X = 4;
datamatrix.Y = 4;
datamatrix.generateBarcodeToImageFile("C://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 = "DataMatrix"
datamatrix.X = 4
datamatrix.Y = 4
datamatrix.ImageFormat = System.Drawing.Imaging.ImageFormat.Png
datamatrix.generateBarcodeToImageFile("C://datamatrix-vb-net.png")

How to Set Data and Format Mode of Data Matrix in ASP.NET
KA.Barcode for ASP.NET creates highly customized barcode images which lets you select data mode and format mode easily by setting "DataMatrixDataMode" and "DataMatrixFormatMode".
C# Sample code
     datamatrix.DataMatrixDataMode = KeepAutomation.Barcode.DataMatrixDataMode.Auto; 
datamatrix.DataMatrixFormatMode = KeepAutomation.Barcode.DataMatrixFormatMode.FM_12X12;
VB Sample code
     datamatrix.DataMatrixDataMode = KeepAutomation.Barcode.DataMatrixDataMode.Auto 
datamatrix.DataMatrixFormatMode = KeepAutomation.Barcode.DataMatrixFormatMode.FM_12X12
How to Create GS1 compatible Data Matrix in ASP.NET
By agreement between AIM, Inc. and GS1 (formerly EAN International and the Uniform Code Council (UCC)), the use of FNC1 could be used to encode GS1 compatible Data Matrix. To achieve this, users should set the "FNC1" property.
C# Sample code
     datamatrix.FNC1 = KeepAutomation.Barcode.FNC1.First;
VB Sample code
     datamatrix.FNC1 = KeepAutomation.Barcode.FNC1.First
How to Set Tilde Function of Data Matrix in ASP.NET
Data Matrix Symbols are able to encode special characters by setting "TildeEnabled" property to true.
C# Sample code
     datamatrix.TildeEnabled = true;
VB Sample code
     datamatrix.TildeEnabled = true
How to Generate Data Matrix in Microsoft IIS Through URL
  1. Download the trial package and unzip it.
  2. Find "barcode" folder and copy the folder and its contents to your IIS.
  3. Open your IIS and create a new virtual directory "barcode".
  4. Then, Restart your IIS and navigate to "http://YourDomain:port/barcode/barcode.aspx?code-to-encode=45678&symbology=101&X=4&Y=4&left-margin=4&right-margin=4&top-margin=4&bottom-margin=4".
  5. The Data Matrix barcode image is created and you can change barcode properties in the url above, view http parameters here.
  6. At last, insert the following image tag into your web pages <img src="http://YourDomain:port/barcode/barcode.aspx?code-to-encode=45678&symbology=101&X=4&Y=4&left-margin=4&right-margin=4&top-margin=4&bottom-margin=4"/> to add the created barcode images in html or aspx pages.
Free Trial DownloadASP.NET Data Matrix.NET Class Data MatrixIIS Data MatrixUsing C#Using VB.NETPDF417 for ASP.NETQR Code for ASP.NETmoreCodabar for ASP.NETCode 39 for ASP.NETCode 128 for ASP.NETEAN-8 for ASP.NETEAN-13 for ASP.NETEAN 128 for ASP.NETIntelligent Mail for ASP.NETInterleaved 2 of 5 for ASP.NETISBN for ASP.NETITF-14 for ASP.NETRM4SCC for ASP.NETUPC-A for ASP.NETUPC-E for ASP.NETmore
KeepAutomation provides complete barcode automation solutions for add barcode display 2-dimensional, barcode generation capacity api, and barcode mobile applications. We recommend the customers use high quality ASP.NET html5 document viewer, c# pdf sdk, C# merge PDF files, Split PDF in C#, 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.