.NET Barcode Generator
for WinFroms Application in C#.NET
Winforms .NET Barcode Generation DLL
Barcode .NET WinForms > Barcode in .NET WinForms > Data Matrix
2D Barcode in .NET WinForms
Data Matrix in C#
PDF417 in C#
QR Code in C#
Data Matrix Barcode Generator/Library for C#.NET
Data Matrix Barcode Generator/Library in C#.NET - Overview
Aspper Data Matrix.NET barcode generation SDK is the most reliable barcode generator which completely built in C#.NET. This easy-to-use Data Matrix barcode library lets you easily adding barcoding features into Visual C# .NET projects. Parameters of barcode are allowed to be adjusted according to requirement.

.NET Barcode Generator SDK library includes ASP.NET Barcode Generator, C# Barcode Generator, VB.NET Barcode Generator, QR Code Generator .NET, QR Code Generator ASP.NET, QR Code Generator C#, QR Code Generator VB.NET, Data Matrix .NET, Data Matrix VB.NET, Data Matrix ASP.NET, Data Matrix C#.
Data Matrix generator provides easy-to-configure assistant tool which lets you easily inserting dynamic barcodes into .NET Framework Applications. Optional C# source code and royalty-free perpetual developer licenses and are available in Aspper Data Matrix barcode generator.
Aspper.com helps .NET programmers to generate most popular dynamic linear and 2D barcodes in Windows Forms applications using C# barcode class library.

Linear barcodes: Code 39,Code 128, EAN-13, GS1-128,UPC-A

2D barcodes:PDF-417,QR Code
Data Matrix Barcode Generator for C#.NET - Benefits
Data Matrix Barcode Generator/Library for .NET Applications
Aspper.com provides complete information of User Guide for Visual C#solution to generate dynamic Data Matrix barcodes into .NET applications and report solution.
How to Create Data Matrix Barcodes on C#.NET Class Library

Generate and Draw Data Matrix 1D Barcodes in C#.NET Classes

  1. Download the Data Matrix barcode generation SDK folder and unzip it. Copy the barcode generation dll to your C#.NET project folder.
  2. Open your project in Visual Studio; add Data Matrix barcode generation dll to project reference.
  3. Right click the form, choose (view code) in the list. Barcodes could be created easily by adding C# code.
// Create linear barcode object
datamatrix = new BarCode();
// Barcode symbology type setting
datamatrix = Symbology.DataMatrix
// Barcode data setting
datamatrix = "0123456789"
// Draw & print generated barcode to png image file
datamatrix.drawBarcode("csharp-datamatrix.png")
Data Matrix Basic property setting
// Encoded data setting
datamatrix.Data = "01234567891";
//Barcode symbology setting
datamatrix.Symbology = Symbology. DataMatrix;
// Unit of measure for all size related setting in the library.
datamatrix.UOM = UnitOfMeasure.PIXEL;
// Bar module width (X), default is 2 pixel;
datamatrix.X = 2;
//Set the bar module height (Y), default is 75 pixel;
datamatrix.Y = 75;
// Set left, right, top, bottom margins of barcode images. Defaults are 0.
datamatrix. MarginLeft = 0;
datamatrix. MarginRight = 0;
datamatrix. MarginTop = 0;
datamatrix. MarginBottom = 0;
// Image resolution setting, default is 72 dpi.
datamatrix.Resolution = 72;
// 4 options of barcode orientation are: 0, 90, 180, 270 degrees
datamatrix. Angle = Angle. Degree0;
// If true, apply checksum digit characters in the input data. Default is false.
datamatrix.AddCheckSum = true;
Text setting for Data Matrix with C#.NET
// If true, display the human readable text under the barcode
datamatrix.ShowText = true;
//If true, display the checksum digit
datamatrix. ShowCheckSum Char = true;
// Text font setting
datamatrix.TextFont = new Font("Arial", 9f, FontStyle.Regular);
// Set the space between barcode and text. Default is 6 pixel.
datamatrix.TextMargin = 6;
Format setting for Data Matrix with C#.NET
// Generate Data Matrix and encode barcode to gif format
datamatrix.Format = ImageFormat.Gif;
datamatrix.drawBarcode("C:\\barcodeimages\\datamatrix.gif");
Color setting for Data Matrix with C#.NET
// Background color setting, Default is white.
datamatrix. BackgroundColor = white;
// Foreground color setting, Default is black.
datamatrix. ForegroundColor = black;
Data Matrix Special Setting
// Apply the tilde character "~" to encode special characters in the input data.
datamatrix. EnableTilde = true;
// Encoding mode setting. Default is DataMatrixDataMode.
datamatrix. DataMatrixDataMode = DataMatrixDataMode.Auto;
// Set format mode of the barcode. Valid values ranges from DtaMatrixFormatMode.FM_10X10 to
DataMatrixFormatMode.FM_144X144

datamatrix. DataMatrixFormatMode =
DataMatrixFormatMode. FM_10X10;
// To encode GS1 compatible Data Matrix barcode. Valid values are: FNC1.First; FNC1.None; FNC1.Second
datamatrix. FNC1Mode = None;
// Group function setting. Default is false.
datamatrix. GroupEnabled = false;
// Count total symbol numbers setting. Default is 0.
datamatrix. GroupItemCount = 0;
// Locate position of the current symbol in sequence. Default is 0.
datamatrix. GroupItemId = 0;

Drag and Drop Data Matrix Linear Barcodes to C#.NET Form

  1. Download the Data Matrix barcode library SDK and unzip it. Copy the generation dll to your C#.NET project folder.
  2. Open your C#.NET project in Visual Studio after the installation.
  3. Right click Toolbox in Visual Studio then click (Choose Item) button. Click button (Browse) in the Choose Toolbox Items dialog.
  4. Find the C#.NET barcode dll, and then click (OK) button.
  5. The barcode items will be displayed in the (Component) section of the Tools Palette.
  6. Drag and drop the barcode control in the toolbox to your .NET Windows Form. Double click the barcode image in the forms.
  7. It is easy to draw and print barcode by using C# code.