BizCode Generator for .NET Ultimate
The most robust & powerful barcode generating SDK for Microsoft .NET Framwork
Quick Overviews
  • Mature barcode creating SDK
  • Support .NET 2.0/3.0/4.0
  • 100% developed in C#.NET
  • Dynamic barcodes support
  • User-defined controls provided
How to Generate Data Matrix in C# Library
C#.NET Data Matrix Generator Control is designed to generate Data Matrix barcode into rectangular and square patterns within any C#.NET development environments. Working perfectly with Microsoft Visual Studio, Visual C#.NET Data Matrix Generator supports VS2005/2008/2010.
Using, users may encode up to 3,116 characters from the entire ASCII character set and store up to 2,335 alphanumeric characters and up to 1,556 bytes in each symbol configuring to ISO / IEC 16022 (2nd edition 2006-09-15). This integration guide tells you more sample codings about Data Matrix data information; others please see:
Data Matrix Data Related Properties

Data Mode

Users may encode easily encode Data Matrix barcode with 8 different data mode using DataMode property.

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

Users may easily change Data Matrix barcode data string with variable length using Code property.

ProcessTilde

Users may simply encode some special characters in Data Matrix barcode with a tilde characters "~" using ProcessTilde property.
  • 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 C#.NET
If you want to encode Data Matrix data in C#.NET, be sure that you have installed:
Encode Data Matrix Barcode Data in .NET Project Using C# Class
Copy those following code onto your C#.NET projects:
DataMatrix barcode = new DataMatrix();
barcode.Code = "0123456789";

barcode.drawBarcode2ImageFile("c:/data-matrix-csharp.gif");
Encode Data Matrix Barcode Data with Different Data Modes in C#.NET
DataMode default value in BizCode Generator for .NET Ultimate is DataMatrixDataMode.Auto.

Copy those following code to change Data Matrix encoding data modes:
barcode.DataMode = DataMatrixDataMode.ASCII;
barcode.Code = "Data-Matrix";
Encode Data Matrix Barcode Data with "~" in C#.NET
ProcessTilde default value in BizCode Generator for .NET Ultimate is false.

Copy those following code to encode Data Matrix barcode data with "~":
barcode.ProcessTilde= true;
barcode.Code = "~m5ABCD1234";