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.
Data Matrix Barcode Generator for C#.NET - Benefits
- 100% managed code created in C#.NET.
- It is easy to generate dynamic barcode images into Windows Forms applications, Class Library, Console Application, Windows Control Library and Crystal Reports Application.
- Winforms Data-Binding is supported by this barcode control.
- This control support 8 data mode to encode ASCII characters.
- Data Matrix barcode library is 100% compatible with variety of operating systems: vista, Windows 2000, XP, Windows 7, Window Server 2003 and 2008.
- This barcode generator supports Visual Studio 2005, 2008, and 2010.
- This library helps you to integrate Data Matrix in .NET Framework 2.0, 3.0, 3.5 or greater.
- Checksum digit is calculated automatically by this dll.
- Barcode generator is fully compatible with ISO / IEC 16022.
- Human-readable text of Data Matrix symbology is allowed to be adjusted.
- 4 types of orientations are supported by this SDK (0, 90, 180, 270 degrees).
- Users are entitled to customize the Properties including X, Y-dimension, wide-to-narrow ratio, margin size of the barcode created by the C#.NET control.
- Images formats of JPEG, GIF, BMP, PNG, TIFF are supported by this control.
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
- Download the Data Matrix barcode generation SDK folder and unzip it. Copy the barcode generation dll to your C#.NET project folder.
- Open your project in Visual Studio; add Data Matrix barcode generation dll to project reference.
- 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
- Download the Data Matrix barcode library SDK and unzip it. Copy the generation dll to your C#.NET project folder.
- Open your C#.NET project in Visual Studio after the installation.
- Right click Toolbox in Visual Studio then click (Choose Item) button. Click button (Browse) in the Choose Toolbox Items dialog.
- Find the C#.NET barcode dll, and then click (OK) button.
- The barcode items will be displayed in the (Component) section of the Tools Palette.
- Drag and drop the barcode control in the toolbox to your .NET Windows Form. Double click the barcode image in the forms.
- It is easy to draw and print barcode by using C# code.