Home  >  .NET Barcode Encoder Library Suite  >  Guide for VB.NET Barcode Generating Library  >  VB.NET Data Matrix Barcoding Control
VB.NET Data Matrix Barcode Generator Library
VB.NET Data Matrix Barcode Generator Library integrates Data Matrix barcode generating features into VB.NET class projects. It can draw, generate Data Matrix barcode images using VB.NET class code quite easily.
Overview - VB.NET Data Matrix Barcode Generator Control
The VB.NET Data Matrix Barcode generator, provided by KeepDynamic.com, is a professional and highly-rated 2D (two-dimensional) barcode creator library. It helps .NET developers easily create Data Matrix barcodes in VB. NET projects.
Related barcode generating solutions for creating Data Matrix images in .NET applications:
Features - Data Matrix Barcode Generating Library for VB.NET Application

VB.NET Data Matrix Barcode Generator Technology

Barcode Image Generation of VB.NET Data Matrix Barcode Generator Control

This VB.NET barcode generator component offers strong Data Matrix barcode creating functions, which makes users adjust & customize created Data Matrix barcode images in an easy way.
View more about Data Matrix Barcode Properties of VB.NET Barcode Generator Library
How to Generate Data Matrix Barcode in VB.NET Class Application?
'Create a new Data Matrix barcode object in VB.NET,
Dim barcode As DataMatrix = New DataMatrix

'Encode data into Data Matrix barcode symbology
barcode.CodeText = "Abc1234567"

'Choose data mode for generating Data Matrix barcode,
' 1. Auto mode will automatically match the best data mode for you
' 2. ASCII mode encodes data that mainly contains ASCII characters (0-127)
' 3. C40 mode encodes numeric data and upper case characters
' 4. Text mode encodes numeric digits and lower case characters
' 5. X12 mode encodes the standard ANSI X12 electronic data interchange characters
' 6. EDIFACT mode encodes 63 ASCII values (values from 32 to 94) plus an Unlatch character (binary 011111)
' 7. Base256 mode encode 8 bit values.
barcode.DataMode = DataMatrixDataMode.ASCII

'Select the format mode to Data Matrix barcode.
'If the selected format mode have insufficient space to hold the data,
'this barcode engine will select the appropriate format mode automatically
barcode.FormatMode = DataMatrixFormatMode.FM_52X52

'Enable the option of ProcessTilde when the tilde character "~" is necessary
barcode.ProcessTilde = True

'Set the Data Matrix barcode graphic measurements as Pixel
barcode.GraphicsUnit = KeepDynamic.Barcode.Generator.GraphicsUnit.Pixel

'Assign the values of bar width to Data Matrix barcode
barcode.X = 3

'Customize Data Matrix barcode image size
barcode.BarCodeWidth = 170
barcode.BarCodeHeight = 170

'Set the margins around the Data Matrix barcode symbology
barcode.LeftMargin = 3
barcode.RightMargin = 3
barcode.TopMargin = 3
barcode.BottomMargin = 3

'Set the resolution of Data Matrix barcode image that is drawn to,
'Change the Data Matrix barcode image orientation
barcode.Resolution = 72
barcode.Rotate = Rotate.Rotate0

'Set Data Matrix barcode drawing image format to PNG in VB.NET
'Generate Data Matrix barcode image in Visual Basic .NET
barcode.Format = System.Drawing.Imaging.ImageFormat.Png
Supported Barcodes by VB.NET Data Matrix Barcode Generator Library