BizCode Barcode Generator for .NET Ultimate
The most robust & powerful barcode generating SDK for Microsoft .NET Framework
Quick Overviews
  • Powerful barcode creating DLL
  • Completely run in VB.NET
  • 100% sample code provided
  • Multiple barcode formats
  • Full controls provided
How to Encode Data Matrix Data in VB.NET
VB.NET Data Matrix Generator is one function of Barcode Generator for .NET Ultimate, which provides an efficient way to create, render Data Matrix barcode with DrawView Control in VB.NET 2.0/3.0/4.0.
VB.NET Data Matrix Generator is absolutely compatible with Data Matrix barcode specification in ISO – ISO / IEC 16022 (2nd edition 2006-09-15) and also support GS1 system standard for Data Matrix generation. It provides ASCII, C40, Base256, X12, Text, Edifact data mode to encode different character of all Standard ASCII characters and Extended ASCII characters into Data Matrix. More details please see below:
Data Matrix Data Related Properties

Data Mode

Barcode property DataMode is provided by Barcode Generator for .NET Ultimate for users to encrypt Data Matrix barcode encodable character sets with different data modes in VB.NET.

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 with the 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

Code

Barcode property Code is provided by Barcode Generator for .NET Ultimate for users to manipulate data length of Data Matrix barcodes.

ProcessTilde

Barcode property ProcessTilde is provided by Barcode Generator for .NET Ultimate for users to encode some special characters for Data Matrix barcode using a tilde characters "~".
  • 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 VB.NET
Make sure that your have installed those programs before you encode Data Matrix data in VB.NET:
Encode Data Matrix Barcode Data in .NET Project Using VB.NET Class
Copy those following code onto your VB.NET projects:
Dim barcode As BusinessRefinery.Barcode.DataMatrix =
New BusinessRefinery.Barcode.DataMatrix()

Barcode.DataMode = DataMatrixDataMode.ASCII

barcode.Code = "0123456789";

barcode.drawBarcode2ImageFile("c:/data-matrix-vb-net.gif")
Encode Data Matrix Barcode with Different Data Modes in VB.NET
In Barcode Generator for .NET Ultimate, the default value of DataMode is DataMatrixDataMode.Auto.

Copy those following code onto your VB.NET projects:
Barcode.DataMode = DataMatrixDataMode.ASCII
barcode.Code = "_*&%"
Control Data Matrix Barcode Data Length
In Barcode Generator for .NET Ultimate, the default value of Code is "". Copy those following code to change Data Matrix barcode data length:
barcode.Code = "5648497/8415578/"
Encode Data Matrix Barcode Data with "~" in VB.NET
In Barcode Generator for .NET Ultimate, the default value of ProcessTilde is false.

Copy those following code to encode Data Matrixbarcode data with "~":
barcode.ProcessTilde= true
barcode.Code = "~189"