- Compatible with .NET Framework 2.0 and greater as well as MS Visual Studio
- Code 128 C#, EAN-8 Excel, Java ISBN, ITF-14 .NET WinForms and other linear & 2D barcode control provided
- Generating, creating high-quality Data Matrix images in Windows applications, Crystal Reports
- Programmatically create, draw 2D Data Matrix bar codes in C#, Visual Basic.NET class & console applications
- All format modes available for Data Matrix ECC200 including 24 square formats & 6 rectangular formats
- Drawing, making Data Matrix with ASCII, C40, Text, X12, Edifact or Base256 Data Mode
- Implementing dynamic barcodes, like ISBN .NET WinForms, VB.NET Interleaved 2 of 5, Code 39 ASP.NET, Excel Code 128 in your projects
- Compatible with ISO / IEC 16022 (2nd edition) for valid Data Matrix output
- Support thermal printer to output high-quality Data Matrix images even with low-resolution printers
Data Matrix barcode creator component API SDK is a functionality of KA.Barcode Generator for ASP.NET for generating, printing Data Matrix in .NET WinForm applications, Crystal Reports, C#, VB.NET class library, etc.
Visual C#.NET. How to Generate Barcodes in Crystal Reports ....
Easy to create 1D, matrix number barcode return images in Visual C#.NET, Visual Basic class & console applications; ....
This guide helps developers to easily resize generated Data Matrix with various parameters and dimension settings. For data encoding and image setting tutorial, please navigate to the pages below:
Data Matrix Size Setting with C#, VB.NET Class in .NET WinForms
Install Data Matrix Barcode Creator Control into .NET Projects
Add reference: Add "KeepAutomation.Barcode.Windows.dll" to your .NET project reference
Add to toolbox: To add BarcodeControl to your Visual Studio .NET toolbox
Copy the C# or VB.NET barcode sample procedure onto you projects to insert, produce a Data Matrix in .NET WinForms:
BarCode barcode= new BarCode();
barcode.CodeToEncode = "Data Matrix";
Dim barcode As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode
barcode.CodeToEncode = "Data Matrix"
Printing, generating QR Code matrix bar codes in ASP ....
Generating Data Matrix with Pixel as Unit of Measure
KA.Barcode Generator for .NET WinForms provides three units of measure for Data Matrix generation in .NET: pixel, inch and cm. Copy the C#/ VB.NET sample codings below to adjust:
barcode.BarcodeUnit = KeepAutomation.Barcode.BarcodeUnit.Pixel;
barcode.BarcodeUnit = KeepAutomation.Barcode.BarcodeUnit.Pixel
Drawing Data Matrix with Specified Format Mode
KA.Barcode Generator for .NET WinForms provides all 30 format modes as specified in ISO/IEC specification for Data Matrix (ECC200), including 24 square ones and 6 rectangular ones.Default is DataMatrixFormatMode.FM_12X12. You can select according to your inputting data capacity. Copy the sample code below to adjust it.
barcode.DataMatrixFormatMode = DataMatrixFormatMode.FM_10*10;
barcode.DataMatrixFormatMode = DataMatrixFormatMode.FM_10*10
Printing Data Matrix with Specific Bar Width & Height
If you want to produce a Data Matrix with specific module size, you can set Data Matrix bar width & bar height through "X" and "Y". Here is the C#/VB.NET sample code:
barcode.X = 3;
barcode.Y = 3;
barcode.X = 3
barcode.Y = 3
Creating Data Matrix with Fiexed Image Width & Height
In case some developers want to generate a Data Matrix to fit into a fixed space, they can resort to the BarCodeWidth & BarCodeHeight properties to adjust. Here is the demo code:
barcode.BarCodeHeight = 70;
barcode.BarCodeWidth = 175;
barcode.BarCodeHeight = 70
barcode.BarCodeWidth = 175
Printing Data Matrix with Quiet Zones / Margins on Four Sides
As is specified in the ISO/IEC 16022 specifications, a minimum X-wide quiet zone/ margin is required on four sides of a Data Matrix image for better readability and data security. Default value for the four margins is 0 pixel. You can adjust through the following samples:
barcode.TopMargin = 3;
barcode.BottomMargin = 3;
barcode.LeftMargin = 3;
barcode.RightMargin = 3;
barcode.TopMargin = 3
barcode.BottomMargin = 3
barcode.LeftMargin = 3
barcode.RightMargin = 3
Data Matrix Size Setting with Draw & Drop .NET WinForms Barcode Control
Add .NET WinForms barcode control to your Visual Studio toolbox
Drag and drop the BarCodeControl into the Forms and a Codabar image is generated
Right click the generated barcode image and select "Properties"
In the property panel, select "DataMatrix" in "Symbology" and write down encode data
Set "BarcodeUnit" to "Pixel", and "DataMatrixFormatMode" to "FM_10X10"
Set "X" to 3, "Y" to 3; Set "BarcodeWidth" to 200 and "BarcodeHeight" to 75
Set "TopMargin" & "BottomMargin" to 3; and set "RightMarign" & "LeftMargin" to 3
A Data Matrix barcodes with customized size will be updated in the form