KA.Barcode Generator for .NET Suite
How to Create & Resize Data Matrix in VB.NET
VB.NET source code to generate, print Data Matrix images using Barcode Generator for .NET Control

Data matrix barcode generator vb.net: make, generate Data Matrix in vb.net project

  • Easy to add Data Matrix barcode generating & printing capabilities into VB.NET
  • Draw and print .NET barcode, barcode Java, barcode ASP.NET & Word barcode in .NET IDEs
  • Encode and print Data Matrix barcode images to display in your VB.NET Web and Windows applications
  • Draw, print Data Matrix in cm, inch, or pixel as the unit of measure for the printout
  • Generate, create 2D Data Matrix barcodes in square and rectangular patterns
  • Simple barcoding of module size for 2D Data Matrix barcodes to produce, integrate a Data Matrix images
  • Draw and export high-quality Code 39 .NET, Java Interleaved 2 of 5, ASP.NET Codabar barcodes as you wish
  • Support Data Matrix barcode integration and width & height adjustment for Data Matrix image
VB.NET Data Matrix Barcode Generation Component API is one function of KA.Barcode Creator for .NET Suite, a high-performance barcode generating SDK library that allows drawing, printing multiple barcodes in VB.NET. Besides, Data Matrix creation is equipped with advanced barcode features, such as barcode size, image quality, color and orientation and is compatible with Data Matrix barcode specification in ISO and GS1 standard. Here are tutorials with VB.NET demos.
Data Matrix Barcode Structure
Data Matrix

Data Matrix barcode (a.k.a DataMatrix, Data Matrix ECC200) is constructed of:
  • Message data/Data region
  • Alignment pattern
  • Finder pattern
  • Timing pattern
  • Quiet zone on all four sides
Data Matrix Size Setting in VB.NET Class

Install Data Matrix Barcode Creator Control into Projects

  1. 1.
  2. 2.
    Copy KeepAutomation.Barcode.Windows.dll or KeepAutomation.Barcode.Web.dll to your VB.NET project folder
  3. 3.
    Open Microsoft Visual Studio, choose "Add Reference" in "Project"
  4. 4.
    Browse KeepAutomation.Barcode.Windows.dll or KeepAutomation.Barcode.Web.dll
  5. 5.
    Now you will see "KeepAutomation.Barcode.Web" or "KeepAutomation.Barcode.Windows" under your references
Copy those following VB.NET barcode onto you forms for creating Data Matrix:
Dim barcode As KeepAutomation.Barcode.Bean.BarCode = New KeepAutomation.Barcode.Bean.BarCode
barcode.Symbology= KeepAutomation.Barcode.Symbology.DataMatrix
barcode.CodeToEncode = "Data Matrix"
C#.NET. How to Generate Barcodes in RDLC Using C#.NET. ....
NET Suite. How to Generate QR Code in .NET Application. How to generate & print QR Code images using free demo in ASP.NET, WinForms, C#, VB.NET...
5. Now, you can change barcode types and customize image settings in the "Properties" window. How to Generate QR Code in .NET WinForms...
Bitmap formats with C#.NET programming; Multiple properties to select such as QR Code version, data mode, error correction lever (ECL), Structure...

Barcoding Data Matrix Barcode Unit

BarcodeUnit (URL: barcode-unit; Default: Pixel): it is the unit measurement for all size related settings in Data Matrix barcodes. User may change it with "Pixel", "Inch" and "Cm". Replace sample code with following one:
barcode.BarcodeUnit = KeepAutomation.Barcode.BarcodeUnit.Pixel

Selecting Data Matrix Barcode Format

DataMatrixFormatMode (URL: data-matrix-format-mode; Default: FM_12X12): it is used for setting Data Matrix version from 8x18 to 144x144. Replace sample code with following one:
barcode.DataMatrixFormatMode = KeepAutomation.Barcode.DataMatrixFormatMode.FM_104X104

Creating Data Matrix with Specified X and Y (Bar Width & Height)

X (URL: x; Default: 1): it is the width of the narrow bar in Data Matrix barcodes

Y (URL: y; Default: 50): it is the height of bars in Data Matrix barcodes.

Replace sample code with following one:
barcode.X = 3
barcode.Y = 3

Generating Data Matrix with Fixed BarCodeWidth and BarCodeHeight

BarCodeWidth (URL: barcode-width; Default: 0): it is the barcode width of Data Matrix barcodes.

BarCodeHeight (URL: barcode-height; Default: 0): it is the barcode height of Data Matrix barcodes.

Replace sample code with following one:
barcode.BarCodeWidth = 200
barcode.BarCodeHeight = 75

Adjusting Data Matrix Quiete Zone / Margins

TopMargin (URL: top-margin; Default: 0): it is the barcode image top margin in Data Matrix barcodes.

BottomMargin (URL: bottom-margin; Default: 0): it is the barcode image bottom margin in Data Matrix barcodes.

LeftMargin (URL: left-margin; Default: 0): it is the barcode image left margin in Data Matrix barcodes.

RightMargin (URL: right-margin; Default: 0): it is the barcode image right margin in Data Matrix barcodes.

Replace sample code with following one:
barcode.TopMargin = 8
barcode.BottomMargin = 8
barcode.LeftMargin = 6
barcode.RightMargin = 6