KA.Barcode Generator for .NET Suite
How to Print Data Matrix in VB.NET with Valid Data
VB.NET source code to generate, print Data Matrix images using Barcode Generator for .NET Control
  • Easy to add, integrate Data Matrix barcode generating & printing capabilities into VB.NET
  • Generate and create Data Matrix barcodes in VB.NET class & console applications
  • Encode, print Data Matrix barcode images to insert in ASP.NET websites and Windows applications
  • Provide complete tutorials for Data Matrix data encoding in Visual Basic.NET
  • Easy-to-use barcode generator provided, such as Excel barcode, Word barcode, barcode .NET & barcode .NET WinForms
  • Simple to encode all ASCII characters into Data Matrix with dynamic data modes
  • Using "~" to specify special characters in the input data for Data Matrix generation
  • Accurate Data Matrix generation complying with ISO / IEC 16022 (2nd edition 2006-09-15)
  • Provide detailed generation guides online, such as C# barcode tutorial, Word barcode creation & .NET WinForms barcode integration
  • Support GS1 system compatible Data Matrix bar codes to be created
Using Data Matrix encoder for VB.NET, developers may encode required characters in Data Matrix easily, and print, create high-quality Data Matrix barcode images in various .NET development environments like Microsoft Visual Studio 2005/2008/2010. Supported projects include ASP.NET web pages, SQL Server Reporting Services and Crystal Reports. Here are two more VB.NET barcoding demo codes for generatd Data Matrix pictures:
Data Matrix Barcode Information
Data Matrix (a.k.a DataMatrix, Data Matrix ECC200) is a two-dimensional matrix barcode, which has large amounts of data, especially suited for making very small codes.

Data Matrix for VB.NET encodes:

  • ASCII characters 0-127
  • ASCII characters 128 to 255 (character with byte values)
Data Matrix Data Encoding in KA.Barcode Generator for VB.NET

Install Data Matrix Barcode Control into .NET Projects

  1. 1.
  2. 2.
    Copy "KeepAutomation.Barcode.Windows.dll" / "KeepAutomation.Barcode.Web.dll" to your VB.NET project folder
  3. 3.
    Add the above two barcoding component DLL(s) libraries to your VB.NET project reference
Copy those following VB.NET barcode onto you forms:
Dim barcode As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode
barcode.Symbology= KeepAutomation.Barcode.Symbology.DataMatrix
barcode.CodeToEncode = "Data Matrix"
barcode.generateBarcodeToImageFile("C://barcode-datamatrix-vbnet.gif")
Data Matrix is a variable-length barcode symbology. That means you may generate Data Matrix barcodes at any length you want with all Data Matrix data mode. To be specific, Data Matrix has several data modes, namely, Auto, ASCII, Base256, C40, Edifact, Text, and X12.

Encode Data Matrix with ASCII Mode

ASCII data mode for Data Matrix encodes:
  • Standard ASCII characters 0 - 127, in accordance with ISO/IEC 646
barcode.DataMatrixDataMode = KeepAutomation.Barcode.DataMatrixDataMode.ASCII
barcode.CodeToEncode = "Data-Matrix"
NET QR Code, Codabar VB.NET, .NET WinForms PDF417; ....
QR Code pictures in VB.NET class library. QR Code Generation Control in VB.NET is a mature, reliable QR Code barcode generator library for .NET...
QR Code barcoding feature into .NET projects using Visual Basic ....
VB.NET source code to generate, print QR Code using Barcode Generator ....
VB.NET PDF417, Word UPC-A, Word Code 128 & ....
more>

Encode Data Matrix with C40 Mode

C40 data mode for Data Matrix encode
  • Numeric characters: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
  • Upper case characters: A-Z
barcode.DataMatrixDataMode = KeepAutomation.Barcode.DataMatrixDataMode.C40
barcode.CodeToEncode = "DATA123"

Encode Data Matrix with Text Mode

Text data mode for Data Matrix allows users to encode:
  • Numeric characters: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
  • Lower case characters: a-z
barcode.DataMatrixDataMode = KeepAutomation.Barcode.DataMatrixDataMode.Text
barcode.CodeToEncode = "2d"

Encode Data Matrix with X12 Mode

X12 data mode for Data Matrix allows users to encode the standard ANSI X12 electronic data interchange characters. Replace VB.NET sample code with following one:
barcode.DataMatrixDataMode = KeepAutomation.Barcode.DataMatrixDataMode.X12
barcode.CodeToEncode = "2 DIMENSIONAL"

Encode Data Matrix with Edifact Mode

Edifact data mode for Data Matrix allows users to encode 63 ASCII values (values from 32 to 94) plus an Unlatch character (binary 011111). Replace VB.NET sample code with following one:
barcode.DataMatrixDataMode = KeepAutomation.Barcode.DataMatrixDataMode.Edifact
barcode.CodeToEncode = "2DIMENSIONAL"

Encode Data Matrix with Base256 Mode

Base 256 data mode for Data Matrix allows users to encode 8 bit values. Replace VB.NET sample code with following one:
barcode.DataMatrixDataMode = KeepAutomation.Barcode.DataMatrixDataMode.Base256
datamatrix.CodeToEncode = "dbdh"

Encode Data Matrix with Application Identifier Add-on

Data Matrix barcode generator for VB.NET supports to GS1 standard for generating Data Matrix barcode with different digit Application Identifiers add-on:
  • ~ai2 = 2 digits
  • ~ai3 = 3 digits
  • ~ai4 = 4 digits
  • ~ai5 = 5 digits
  • ~ai6 = 6 digits
  • ~ai7 = 7 digits
barcode.TildeEnabled = true 
barcode.CodeToEncode = "~ai21234~ai516156468498"
barcode.FNC1 = KeepAutomation.Barcode.FNC1.First