BizCode Barcode Generator for ASP.NET
The most professional barcode solutions for Microsoft ASP.NET
Quick Overviews
  • Barcode creating class library
  • Support ASP.NET IDEs & IIS
  • Easy to use & integrate
  • Dynamic barcodes support
  • High-usability controls provided
How to Encode Data Matrix Data in ASP.NET
BusinessRefinery.com ASP.NET Barcode Data Matrix Generator DLL is a powerful ASP.NET barcode generation class library. It enables developers and other users to create Data Matrix barcodes in ASP.NET applications.
ASP.NET Barcode Data Matrix Generator supports Data Matrix barcode in ISO - ISO / IEC 16022 (2nd edition 2006-09-15), and also compatible with GS1 system standard. This product requires minimum Data Matrix and provides a set of Data Matrix generation guide for you; please see:
Data Matrix Data Related Properties

Data Mode

Barcode Generator for ASP.NET provides Symbologyclass for users, if they want to set create Data Matrix with different data modes.

8 Data Matrix data modes:
  • Auto: this component will determine the best data mode for you
  • ASCII: encodes standard ASCII characters 0-127
  • C40: mainly encodes upper-case alphabetic, numeric and other characters to be encoded by the use of shift characters in conjunction withthe data character
  • Text: encodes encode normal printed text
  • X12: encodes the standard ANSI X12 electronic data interchange characters
  • Edifact: encodes 63 ASCII values (values from 32 to 94) plus an Unlatch character (binary 011111) to return to ASCII encodation
  • Base256: encodes any 8-bit byte data, including extended channel interpretations and binary data
  • Customer: encodes data according to the customer

Code

Barcode Generator for ASP.NET provides Codeclass for users, if they want to manipulate Data Matrix barcode length.

ProcessTilde

Barcode Generator for ASP.NET provides ProcessTildeclass for users, if they want to encode special character for Data Matrix using "~".
  • 1-byte character: ~0dd/~1dd/~2dd (character value from 000 ~ 255); ASCII character '~' is presented by ~126
    Strings from "~256" to "~299" are unused
  • 2-byte character (Unicode): ~6ddddd (character value from 00000 ~ 65535)
    Strings from "~665536" to "~699999" are unused
  • for GS1 AI Code:
  • ECI: ~7dddddd (valid value of dddddd from 000000 to 999999)
  • ~rp: Reader Programming (for ASCII mode and Auto mode only)
    This should be located at the beginning of the encoding data, e.g. data = "~rpABCD1234".
  • ~m5: 05 Macro (for ASCII mode and Auto mode only)
    This should be located at the beginning of the encoding data, e.g. data = "~m5ABCD1234".
  • ~m6: 06 Macro (for ASCII mode and Auto mode only)
    This should be located at the beginning of the encoding data, e.g. data = "~m6ABCD1234".
Encode Data Matrix Barcode Data in ASP.NET & IIS
Be sure that you have installed those following programs onto your computers:
  • Microsoft .NET Framework 2.0/3.0/4.0
  • Microsoft Visual Studio 2005/2008/2010 (Express, Professional & Standard Edition)
  • Microsoft Internet Information Service (IIS)
  • Barcode Generator for ASP.NET installed
Encode Data Matrix Barcode Data in ASP.NET Web Forms Using BarcodeControl
  1. Add ASP.NE Barcode Control onto your .NET Visual Studio Toolbox;
  2. Drag and drop the WebDataMatrix control into the Forms;
  3. Run the website and you will see a barcode image generated;
  4. Go to Address bar and change your URL with following one: http://localhost/br_barcode/datamatrix.aspx?code=0123456789&data-mode=0;
  5. Then a Data Matrix occurs.
Encode Data Matrix Barcode Data in ASP.NET Using C#, VB.NET Class
using BusinessRefinery.Barcode;

DataMatrix barcode = new DataMatrix();

// Select different data mode for Data Matrix data encoding
Barcode.DataMode = DataMatrixDataMode.ASCII;

// Modify Data Matrix data length
barcode.Code = "0123456789";
barcode.drawBarcode2ImageFile("c:/data-matrix-csharp-net.gif");
Dim barcode As BusinessRefinery.Barcode.DataMatrix = 
New BusinessRefinery.Barcode.DataMatrix()
' Select different data mode for Data Matrix data encoding
Barcode.DataMode = DataMatrixDataMode.ASCII

' Modify Data Matrix data length
barcode.Code = "0123456789"
barcode.drawBarcode2ImageFile("c:/data-matrix-vb-net.gif")
Encode Data Matrix Barcode Data in Internet Information Service (IIS)
  1. Download Barcode Generator for ASP.NET and unzip;
  2. Copy the whole barcode fold and contents into IIS and create a new virtual directory called "br_barcode";
  3. Restart IIS, navigate to http://localhost/br_barcode/datamatrix.aspx?code=0123456789&data-mode=0