VB: Online Guide
How To: Barcode Generator
Data Matrix
Data Matrix
  |  
Home ›› XImage.Barcode Generator ›› VB.NET Barcode Generator: Data Matrix

VB.NET Imaging - Generate 2D Data Matrix Plug-in SDK Control


Generate Data Matrix Barcode Image Using VB.NET Imaging Library




VB Imaging - Data Matrix Generator Plug-in Overview



Data Matrix, a commonly-used 2d barcode symbology, owns huge information storage capacity. This VB.NET Data Matrix barcode creator add-on, a component of .NET image SDK, is designed to help developers integrate advanced Data Matrix barcode generating solution into VB.NET imaging applications.

asp.net pdf viewer user control c#, asp.net core pdf preview, pdf editor in asp net mvc, asp. net mvc pdf viewer, asp.net open excel file in browser, asp.net core image view, asp net show word document in browser.

Therefore, using this VB.NET Data Matrix barcode generator add-on, you can easily draw standard Data Matrix barcode on image files and documents using VB.NET code. vb.net read pdf to text, convert excel to pdf vb.net, convert pdf to tiff vb.net, c# extract image from pdf file, pdf editor vb.net, how to read specific text from pdf file in c#, convert pdf to png vb.net.


Related .net document control helps:
asp.net multipage tiff viewer: ASP.NET Tiff Viewer: view, annotate multipage Tiff images in ASP.NET MVC, WebForms using C# Control
asp.net mvc pdf editor: ASP.NET MVC PDF Viewer & Editor: view, annotate, redact, edit PDF document in C# ASP.NET MVC
asp.net dicom viewer: ASP.NET Dicom Document Viewer Control: view, annotate dicom imaging files online in ASP.NET
sharepoint document viewer: ASP.NET SharePoint Document Viewer: view, annotate, redact documents in SharePoint
asp.net mvc text file viewer: ASP.NET Text file viewer in MVC, WebForms: Open, view, annotate, convert txt files in C# ASP.NET
asp.net word document viewer: ASP.NET Office Word Document Viewer: view Word doc files online using C# in ASP.NET MVC web applications
asp.net document viewer control: EdgeDoc:ASP.NET Document Viewer C# Control: Open, view, annotate, redact, convert documents online in C#, VB.NET, AS...


Here we briefly list the features that this VB.NET Data Matrix barcode creator add-on has owned.


Designed specifically for VB.NET developers to write Data Matrix barcode on image & document


The location where the Data Matrix will be inserted can be accurately determined using VB.NET code


Generated Data Matrix barcode image can be freely rotated, resized and repositioned using VB.NET


Created Data Matrix barcode can be read & recognized by most barcode scanners


Easily generate Data Matrix barcode images in VB.NET Windows & ASP.NET web applications


Compatible with latest GS1 specification for valid barcode scanning


Besides, RasterEdge.com also provides other Data Matrix barcoding solutions & tutorials, like how to generate Data Matrix in VB.NET and how to read/scan Data Matrix in VB, for developers to get to know more about our Data Matrix VB & VB.NET generator and decoder.




VB Code for Customizing Data Matrix Barcode Generation



You can easily generator Data Matrix and save it  to image files/object using this VB.NET barcode generator control. The following steps will show how to create a Data Matrix type barcode encoding numeric data text "123456789" into the image object with XImage.Barcode.Creator.


Add References


  RasterEdge.Imaging.Basic.dll


  RasterEdge.Imaging.Drawing.dll


  RasterEdge.Imaging.Font.dll


  RasterEdge.Imaging.Processing.dll


  RasterEdge.XImage.BarcodeCreator.dll


  System.Drawing.dll


Using Namespaces


  using System.Drawing;


  using RasterEdge.XImage.BarcodeCreator;


Note: When you get the error "Could not load file or assembly 'RasterEdge.Imaging.Basic' or any other assembly or one of its dependencies. An attempt to load a program with an incorrect format", please check your configure as follows:

       

       If you are using x64 libraries/dlls, Right click the project -> Properties -> Build -> Platform target: x64.

       

       If using x86, the platform target should be x86.


Please copy the sample code as follow to generator a DataMatrix barcode.




'create a Data Matrix barcode
Dim barcode As DataMatrix = New DataMatrix()
'encode data into Data Matrix barcode
barcode.Data = "123456789"
'set module size
barcode.X = 5.0F
'the minimum value for each margin should be equal to X
barcode.RightMargin = barcode.LeftMargin = barcode.TopMargin = barcode.BottomMargin = barcode.X
'set barcode printing resolution
barcode.Resolution = 96
'set rotation
barcode.Rotate = Rotate.Rotate0
barcode.BarcodeHeight = 200
barcode.BarcodeWidth = 200
barcode.AutoResize = true

'convert barcode to a bitmap and save it to image file
Dim bmp As Bitmap = barcode.ToImage()
'bmp.Save("C:\\barcode.bmp")





VB Imaging - Create Data Matrix Barcode on Images



Taking Data Matrix barcode generation on png image file as a case, we here offer a VB.NET sample code to show you how to draw Data Matrix barcode on image file formats. Other supported image types are tiff, gif, jpeg and bmp. You can easily draw industry-standard Data Matrix barcode on png, gif, jpeg and bmp image files using this VB.NET barcode generator control. Copy the following VB sample code to your barcode application to create a Data Matrix encoding numeric data text "123456789" onto a sample png image file and then save it to your local disk ("c:/datamatrix.png").




Dim image As REImage = New REImage("C:\\Sample.png")
barcode.DrawBarcode(image, 150F, 150F)
image.Save(ImageType.PNG, "C:\\Sample_Barcode.png")





VB Imaging - Insert Data Matrix Barcode on Documents



This Barcode Creator Add-on can help .NET developers insert Data Matrix barcode into a certain page of PDF, TIFF, Word, Excel or PPTX document. Besides, with the application of X & Y location, you are also allowed to specify accurate Data Matrix barcode generating area. Here we offer Visual VB example coding to generate Data Matrix on PDF, TIFF, Word, Excel and PowerPoint respectively.



How to Create Data Matrix on PDF Using VB.NET Code



Coupled with PDF document processor which is able to open PDF file and select any page independently, this VB.NET Data Matrix barcoding add-on can easily insert Data Matrix barcode image into PDF page. As this VB.NET Data Matrix barcode generator add-on uses the application of X & Y location, developers can accurately locate created Data Matrix by defining the coordinates of starting point.


Add References(Extra)


  RasterEdge.Imaging.Basic.Codec.dll


  RasterEdge.XImage.Raster.dll


  RasterEdge.XImage.Raster.Core.dll


  RasterEdge.XDoc.PDF.dll


Using Namespace(Extra)


  RasterEdge.XDoc.PDF;


  RasterEdge.Imaging.Basic;


  RasterEdge.Imaging.Raster.Core;




Dim  docx As PDFDocument = New PDFDocument("C:\\Sample.pdf")
Dim  page As PDFPage = docx.GetPage(0)
Dim  image As Bitmap = barcode.ToImage() 'Define on the above code
page.AddImage(image, New PointF(100F, 100F))
docx.Save("C:\\Sample_Barcode.pdf")




VB Code to Draw Data Matrix on TIFF



Add References(Extra)


  RasterEdge.Imaging.Basic.Codec.dll


  RasterEdge.XImage.Raster.dll


  RasterEdge.XImage.Raster.Core.dll


  RasterEdge.XDoc.TIFF.dll


Using Namespace(Extra)


  RasterEdge.XDoc.TIFF;


  RasterEdge.Imaging.Basic;


  RasterEdge.Imaging.Raster.Core;




Dim  docx As TIFFDocument = New TIFFDocument("C:\\Sample.tif")
Dim page As BasePage = docx.GetPage(0)
Dim  image As REImage = New REImage(barcode.ToImage())
page.AddImage(image, New PointF(100F, 100F))
docx.Save("C:\\Sample_Barcode.tif")




VB Code to Generate Data Matrix on Word



Add References(Extra)


  RasterEdge.XDoc.Word.dll


  RasterEdge.XImage.Raster.dll


  RasterEdge.XImage.Raster.Core.dll


  RasterEdge.XDoc.Office.Inner.Common.dll


  RasterEdge.XDoc.Office.Inner..Office03.dll


Using Namespace(Extra)


  RasterEdge.XDoc.Word;


  RasterEdge.Imaging.Basic;


  RasterEdge.Imaging.Raster.Core;




Dim  docx As DOCXDocument = New DOCXDocument("C:\\Sample.docx")
Dim page As BasePage = docx.GetPage(0)
Dim  image As REImage = New REImage(barcode.ToImage())
page.AddImage(image, New PointF(100F, 100F))
docx.Save("C:\\Sample_Barcode.docx")




Demo Code to Add Data Matrix to Excel in VB



Add References(Extra)


  RasterEdge.XDoc.Excel.dll


  RasterEdge.XImage.Raster.dll


  RasterEdge.XImage.Raster.Core.dll


  RasterEdge.XDoc.Office.Inner.Common.dll


  RasterEdge.XDoc.Office.Inner..Office03.dll


Using Namespace(Extra)


  RasterEdge.XDoc.Excel;


  RasterEdge.Imaging.Basic;


  RasterEdge.Imaging.Raster.Core;




Dim  docx As XLSXDocument = New XLSXDocument("C:\\Sample.xlsx")
Dim page As BasePage = docx.GetPage(0)
Dim  image As REImage = New REImage(barcode.ToImage())
page.AddImage(image, New PointF(100F, 100F))
docx.Save("C:\\Sample_Barcode.xlsx")




Create Data Matrix to PPTX Slide in VB.NET



Add References(Extra)


  RasterEdge.XDoc.PowerPoint.dll


  RasterEdge.XImage.Raster.dll


  RasterEdge.XImage.Raster.Core.dll


  RasterEdge.XDoc.Office.Inner.Common.dll


  RasterEdge.XDoc.Office.Inner..Office03.dll


Using Namespace(Extra)


  RasterEdge.XDoc.PowerPoint;


  RasterEdge.Imaging.Basic;


  RasterEdge.Imaging.Raster.Core;




Dim  docx As PPTXDocument = New PPTXDocument("C:\\Sample.pptx")
Dim page As BasePage = docx.GetPage(0)
Dim  image As REImage = New REImage(barcode.ToImage())
page.AddImage(image, New PointF(100F, 100F))
docx.Save("C:\\Sample_Barcode.pptx")