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 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
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.
- Download the trial version of .NET WinForms Data Matrix barcode SDK and unzip it.
- Open your Visual Studio and add "KeepAutomation.Barcode.Windows.dll" from the unzipped package to the Toolbox.
- Drag and drop "BarCodeControl" from Visual Studio Toolbox to your project form.
- Select Data Matrix barcode type in the Properties window.
- Reset your Data Matrix barcode properties through the "Properties" window.
How to Create Data Matrix in WinForms Using C# or VB
- Add "KeepAutomation.Barcode.Windows.dll" to your .NET WinForms project reference.
- 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 |