Data Matrix for C#
Barcode .NET > Barcode in C# > 2D > Data Matrix

Language Quick Jump:

VB.NET Barcode Generation |  C++.NET Barcode Generation |  J#.NET Barcode Generation

C#.NET Data Matrix Barcode Setting Quick links:
Data Matrix Overview
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. The information to be encoded can be text or raw data. Usual data size is from a few bytes up to 2 kilobytes. The length of the encoded data depends on the symbol dimension used. Error correction codes are added to increase symbol strength: even if they are partially damaged, they can still be read. A Data Matrix symbol can store up to 2,335 alphanumeric characters.

Encodable Character

  • All 128 characters of ASCII
  • Values 128-255 in accordance with ISO 8859-1. There are referred to as extended ASCII
Data Matrix Generator in C#.NET - FAQ

1. How to generate Data Matrix bar code image using Data Matrix Generator in C#.NET in C#.NET Class?

       using BusinessRefinery.Barcode;

       DataMatrix barcode = new DataMatrix();
       barcode.Code = "9876543210";
       barcode.drawBarcode("C://data-matrix-in-csharp.gif");

2. How to stream Data Matrix to image files?

       using BusinessRefinery.Barcode;

       DataMatrix barcode = new DataMatrix();
       barcode.Code = "9876543210";
       barcode.drawBarcode("C://data-matrix-in-csharp.png");
You can also create QR Code to GIF, JPEG, & BMP image formats besides PNG


3. How to install Data Matrix Generator in C#.NET Windows Control Library?

  1. Add BusinessRefinery.Barcode.WinForms.dll to your .NET Windows Application project reference
  2. Add .NET Barcode Generator .NET Windows Control Library to .NET Visual Studio Toolbox

4. How to install Data Matrix Generator in C#.NET Web Control Library?

  1. Add BusinessRefinery.Barcode.ASPNET.dll to your ASP.NET project reference
  2. Add ASP.NET Barcode Generator ASP.NET Web Control Library to .NET Visual Studio Toolbox

5. How to generate Data Matrix in ASP.NET Web Application using .NET Barcode Generator Streaming Functions?

  1. Copy the folder barcode under evaluation package with contents to your IIS web server
  2. Create a new virtual directory named "barcode"in your IIS web server.
  3. Restart IIS web server, open your web browser and navigate to http://project-url/barcode/DataMatrix.aspx?code=0123456789
  4. To create QR Code image to your html or aspx pages, you can insert an image tag (img) into your web page.
    For example, <img src="ttp://project-url/barcode/DataMatrix.aspx?code=0123456789" />
Codabar Generator Component for .NET Framework


BusinessRefinery provides 3 mature .NET Barcode Generation Components to generate Codabar in C#.NET projects:

.NET Barcode for ASP.NET - enable barcode generation in C# class, C# console applications, and C# ASP.NET web projects.

.NET Barcode for Windows Forms - enable barcode generation in C# class, C# console applications, and C#.NET Windows applications.

.NET Barcode Ultimate - integrates all features in the above two controls.

More Barcodes




Quick Links