KA.Barcode Generator for .NET Suite
How to Print Data Matrix in C# with Valid Data
Complete C#.NET source code to generate Data Matrix images using Barcode Generator for .NET Control

C# 2D Data Matrix barcode generator library: generate, render data matrix 2d barcode from encoding data with free c# example



  • Compatible with .NET development environments like Microsoft Visual Studio .NET 2005, 2010, etc
  • Simple to generate, integrate 2d Data Matrix bar codes in ASP.NET web sites and paint in windows applications
  • Creating, inserting Data Matrix barcode in SQl Server Reporting Services and Crystal Reports
  • PDF417 .NET, PDF417 VB.NET, Excel UPC-E, C# Code 128 & EAN 128 C# can be created as well
  • Detailed C#.NET sample code provided to help you input valid data for Data Matrix barcodes
  • Support Data Matrix data modes including ASCII, C40, Text, X12, Edifact, and Base 256
  • Compatible with latest ISO/IEC 16022 specification for Data Matrix generation
  • Support to print 2D barcode in ASP.NET as well, including ASP.NET PDF417, ITF-14 .NET, VB.NET EAN 128
  • Generating, printing multiple high-quality Data Matrix images for all printers with C#.NET
  • Support barcoding, printing Data Matrix version ECC200 in C#.NET programming
KA.Barcode for .NET Suite is a mature barcode generator to create, insert Data Matrix (ECC 200) and other linear, 2d barcodes in ASP.NET web sites, Windows Forms, C#, VB.NET class & console applications. Apart from this Data Matrix data encoding tutorial, you can also access to Data Matrix size setting and image setting guide with examples below:
Method 2: Build Click Event in Winforms in C#.NET. ....
Windows XP; Window Server 2003; Window Server 2008. Test Environment: Microsoft Windows XP; Microsoft Visual Studio 2005; Visual C#.NET. 1D & 2D...
How to generated barcodes for ASP.NET in Visual Studio by using free C#.NET Barcode Library DLL ....
more>
Data Matrix Introduction

Valid Data

  • ASCII: values 0-127 (in accordance with ISO/IEC 646), including 0-9, A-Z, a-z and special characters like $ , % + / : *.
  • Extended ASCII: values 128-255 (in accordance with ISO 8859-1)

Valid Length

  • Data Matrix barcode has a variable-length.
  • Alphanumeric data: up to 2335 characters (maximum)
  • 8-bit byte data: 1555 characters
  • Numeric data; 3116 digits
Data Matrix Data Encoding in KA.Barcode Generator for .NET Suite

Install KA.Barcode Generator for .NET Suite into Project

  1. 1.
  2. 2.
    Add Reference: Add "KeepAutomation.Barcode.Window.dll" to your .NET WinForms project reference.
  3. 3.
    Add to Toolbox: Add BarCodeControl to your .NET Visual Studio toolbox.

Copy the C#.NET Code to Project to Create a Data Matrix Barcode

using KeepAutomation.Barcode.Bean;

BarCode datamatrix= new BarCode();
datamatrix.Symbology = KeepAutomation.Barcode.Symbology.DataMatrix;
datamatrix.CodeToEncode = "C#DataMatrixImage";
datamatrix.X = 3;
datamatrix.Y = 3;
datamatrix.generateBarcodeToImageFile("C:/datamatrix_csharp.png");

ASCII Data Mode for Data Matrix Generation

KeepAutomation Data Matrix ASCII data mode allows you to encode double digit numerics, ASCII values 0-127, Extended ASCII values 128-255, which include numeric digits, upper-case letters, lower-case letters, and special characters.
datamatrix.DataMatrixDataMode = DataMatrixDataMode.ASCII;
datamatrix.CodeToEncode = "Data128#c";
Visual C#.NET. How to Generate Barcodes in ....
Barcode generation example; Completely compatible with Java SDK 1.4.2 and later versions; Free tutorial for creating high quality QR Code barcodes...
In C#.NET, compatible with .NET Framework 2.0/3.0/4.0; Simple to generate 2D QR Code bar codes with Microsoft VS.NET and other development...
How to create barcode in C#.NET using Client Report RDLC? ....
more>

C40 Data Mode for Data Matrix Creation

C40 Data Mode for Data Matrix allows you to encode upper-case alphanumeric data.
datamatrix.DataMatrixDataMode = DataMatrixDataMode.C40;
datamatrix.CodeToEncode = "DATA40";

Text Data Mode for Data Matrix Barcoding

Text Data Mode for Data Matrix allows you to encode lower-case alphanumeric data.
datamatrix.DataMatrixDataMode = DataMatrixDataMode.Text;
datamatrix.CodeToEncode = "textdata";

X12 Data Mode for Data Matrix Integration

X12 Data Mode for Data Matrix allows you to encode the standard ANSI X12 EDI electronic data interchange characters, which includes upper-case alphabetic characters A-Z, numerics 0-9, space and the three standard ANSI X12 terminator and separator characters.
datamatrix.DataMatrixDataMode = DataMatrixDataMode.X12;
datamatrix.CodeToEncode = "DATAX12";

EDIFACT Data Mode for Data Matrix

EDIFACT Data Mode for Data Matrix allows you to encode 63 ASCII values from 32-94, which include all numeric digits 0-9, upper-case alphabetic and many punctuation marks. Edifact data mode has no support for lower-case letters.
datamatrix.DataMatrixDataMode = DataMatrixDataMode.Edifact;
datamatrix.CodeToEncode = "ECC200";

Base 256 Data Mode for Data Matrix

Base 256 Data Mode for Data Matrix allows you to encode any 8-bit byte data, including extended channel interpretations and binary data.
datamatrix.DataMatrixDataMode = DataMatrixDataMode.Edifact;
datamatrix.CodeToEncode = "ECC200";
Note: If you are not sure which data mode is proper for your encoding data, you can select Data Matrix Auto mode, KA.Barcode Generator for .NET Suite will automatically print valid Data Matrix images according to your input data.