How to Generate Data Matrix in .NET WinForms

How to Generate & Print 2D Data Matrix Barcode Images in .NET WinForms with C# & VB.NET



  • Complete written in Visual C#.NET for .NET Framework 2.0/3.0/4.0
  • Generated Data Matrix compatible with ISO / IEC 16022 (2nd edition 2006-09-15)
  • Simple to integrate 2D Data Matrix generating DLL into .NET WinForms applications
  • Easy to generate and create 2D Data Matrix in .NET WinForms class and console applications
  • Draw high quality 2D Data Matrix barcodes in gif, jpeg, png, tiff, and bitmap files
  • Grant royalty-free and permanent Developer License for purchased products
  • Professional and mature 2D Data Matrix barcode generating component extensively used
.NET WinForms Data Matrix Barcode Generator Overview
Data Matrix Barcode Encoder SDK Software for WinForms is a powerful barcode feature of KA.Barcode for .NET WinForms, which helps users easily generate and print Data Matrix and other linear & bi-dimensional barcodes in Windows Forms, C#, VB.NET class & console applications. In addition, the user-friendly interface provides easy access for customization of the generated barcode images.

rdlc barcode font, c# gs1 barcode parser, how to make qr code generator in vb.net, barcode scanner code in c# windows application, how to print barcode labels in crystal report, asp.net 2d barcode generator
Data Matrix Barcode Overview in WinForms
Data Matrix, also known as Data Matrix ECC 200, is a kind of two-dimensional (Matrix) barcode symbology, which can hold large amount of data. DataMatrix is being used to encode product and serial number information on electrical rating plates; to mark of surgical instruments in Japan; and other items during manufacturing.
Data Matrix Encodable Data in WinForms
  • Standard ASCII characters: 0-127 including A-Z, a-z, 0-9, and special characters
  • Extended ASCII characters: 128-255
Download Data Matrix Barcode SDK in .NET WinForms
Developers are able to download KA.Barcode for .NET WinForms trial version for free. The unzipped trial package contains: "KeepAutomation.Barcode.Windows.dll", User Manual, End User License Agreement and Order Page.
As a "KA Barcode" watermark appears on the generated Data Matrix barcode images, evelopers cannot use this trial version for any commercial application.
How to Insert Data Matrix Barcode in .NET Windows Forms
Refer to the following steps to generate Data Matrix barcode image in .NET Windows Forms.
  1. Download the trial version of .NET WinForms Data Matrix barcode SDK and unzip it.
  2. Open your Visual Studio and add "KeepAutomation.Barcode.Windows.dll" from the unzipped package to the Toolbox.
  3. Drag and drop "BarCodeControl" from Visual Studio Toolbox to your project form.
  4. Select Data Matrix barcode type in the Properties window.
  5. Reset your Data Matrix barcode properties through the "Properties" window.
How to Create Data Matrix in WinForms Using C# or VB
  1. Add "KeepAutomation.Barcode.Windows.dll" to your .NET WinForms project reference.
  2. Compile the following C# or VB demo code to generate Data Matrix barcode image in .NET WinForms.
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://barcode-datamatrix-csharp.gif");

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.generateBarcodeToImageFile("C://barcode-datamatrix-vbnet.gif")

How to Generate GS1 compatible Data Matrix in .NET WinForms
GS1 system uses Data Matrix as a GS1 barcode because Data Matrix barcode is able to encode GS1 System data structures and offers other technical advantages. Data Matrix ISO version ECC 200 is the only version that supports GS1 System data structures, including Function 1 Symbol Character. Users may make it work using "FNC1" property and setting it to "FNC1.First", which designates data formatted in accordance with the GS1 General Specifications.
C# Sample code
     datamatrix.FNC1 = KeepAutomation.Barcode.FNC1.First;
VB Sample code
     datamatrix.FNC1 = KeepAutomation.Barcode.FNC1.First
How to Generate Data Matrix with Data Mode and Format Mode in .NET WinForms
Data Matrix has multiple data modes to encode different types of data including ASCII, C40, Text, X12, EDIFACT and Base 256. Barcode Control SDK for WinForms adds "Auto" data mode for easy generation. Users may set "DataMatrixDataMode" property to encode data. Besides, Data Matrix has different format modes size from 10*10 to 144*144 and 8*8 to 16*16 respectively. Developers may change the format mode by using "DataMatrixFormatMode" property.
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 Generate Data Matrix with Tilde Function in .NET WinForms
Tilde function is encoded in Barcode Generator DLL for .NET Winforms for developers to encode special characters in Data Matrix. Users may apply this function by setting "TildeEabled" to true.
C# Sample code
     datamatrix.TildeEnabled = true;
VB Sample code
     datamatrix.TildeEnabled = true
Free Trial DownloadWinForms Data Matrix.NET Class Data MatrixUsing C#Using VB.NETPDF417 for .NET WinFormsQR Code for .NET WinFormsmoreCodabar for .NET WinFormsCode 39 for .NET WinFormsCode 128 for .NET WinFormsEAN-8 for .NET WinFormsEAN-13 for .NET WinFormsEAN 128 for .NET WinFormsIntelligent Mail for .NET WinFormsInterleaved 2 of 5 for .NET WinFormsISBN for .NET WinFormsITF-14 for .NET WinFormsRM4SCC for .NET WinFormsUPC-A for .NET WinFormsUPC-E for .NET WinFormsmore
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.