How to Generate Data Matrix in C# Library
Data Matrix (a.k.a. Data Matrix ECC200) is a two-dimensional matrix barcode consisting of black and white "cells" or modules arranged in either a square or rectangular pattern. A Data Matrix symbol can store up to 2,335 alphanumeric characters.
Data Matrix Generator SDK for C#.NET is designed to be used in .NET Framework, which allows easily and simply Data Matrix barcode generating and creating using C#.NET class. It provides strong named assemblies for .NET Framework 2.0, 3.5 and 4.0, which enables Data Matrix barcode to be easily integrated with C#.NET.
Data Matrix Generator for C#.NET can draw those data into Data Matrix barcode image easily with Draw View Barcode control. All the Data Matrix images can be saved into JPEG, GIF, PNG, TIFF and Bitmap formats with high qualities. Meanwhile, this generator provides a series of advanced functionalities to set barcode properties to meet developers' needs.
As a 2D barcode, Data Matrix barcode generating is compatible with Data Matrix barcode specification in ISO - ISO/IEC16022 (2nd edition 2006-09-15) as well as GS1 General Specification (Version 8). Here are some user guides for
encoding valid data for Data Matrix,
manipulating Data Matrix image, and
specifying proper size for Data Matrix.
Data Matrix Generator for C#.NET Features
Encodable Characters | Support to encode: - Standard ASCII characters 0-127 (default: ISO/IEC 646) - Extended ASCII characters 128-255 (default: ISO/IEC 8859-1) |
Barcode Specification | Compatible with Data Matrix barcode specification in ISO; Also support to create GS1 compatible Data Matrix barcodes |
Simple to Integrate | Easy to integrate with C#.NET and worl well with Visual Studio 2005/2008/2010 |
Lower ASCII Support | Support to simply encode functions, such as tabs & returns in Data Matrix barcodes |
Detailed documentation | Provide detailed documentation, includes source code for the Barcode Image Generator written in C#.NET |
High Quality Barcode | Export high quality graphic images in WMF, BMP, JPG, GIF, PNG and TIF formats or in graphic objects for C#.NET |
Data Matrix Generator for C#.NET Requirements
Windows OS - Microsoft Windows 7 - Windows Server 2008 - Windows Vista - Windows Server 2003 - Windows XP | Development Environments - .NET 2.0/3.0/4.0 - Visual Studio 2005/2008/2010 - C#.NET Windows Forms Application - C#.NET Class and Console Applications - C#.NET Web Forms - C#.NET SSRS and Crystal Report |
Install .NET Data Matrix Generator in C#.NET
Add Windows Forms Barcode Generating Reference to Your Project
- Unzip BizCode Generator for .NET Ultimate package;
- Add BusinessRefinery.Barcode.Win.dll to your Winforms project folder;
(The DLL will be copied to the bin directory automatically) - Then BusinessRefinery.Barcode.Win.dll is added on your .NET Winforms project.
Install .NET Data Matrix Generator in C#.NET
Add ASP.NET Barcode Generating Reference to Your Project
- Unzip BizCode Generator for .NET Ultimate package;
- Add BusinessRefinery.Barcode.Web.dll to you ASP.NET project folder;
(The DLL will be copied to the bin directory automatically) - Then BusinessRefinery.Barcode.Web.dll is added on your ASP.NET project.
How to Generate Data Matrix Barcode Image Using C# Class In .NET?
Copy those following sample cod to your C#.NET project:
using BusinessRefinery.Barcode;
DataMatrix barcode = new DataMatrix();
barcode.Code = "Data Matrix";
barcode.Resolution = 104;
barcode.Rotate = Rotate.Rotate180;
barcode.Format = ImageFormat.Gif;
barcode.drawBarcode2ImageFile("c:/data-matrix-csharp.gif");