Our Customers
Contact Us Email: support@barcodelib.com
Home > .NET Barcode Reader & Scanner > Scan and Recognize Linear & 2D Barcode Images in VB.NET Applications
Download Barcode Reader for .NET Trial

How to Scan Linear & 2D Barcode Image in VB.NET

Using VB.NET Barcode Scanner DLL to read barcodes in .NET, ASP.NET projects
  • Using high-quality barcode recognition features for VB.NET application barcode scanning & reading
  • Read linear and 2d (matrix) barcodes from ASP.NET web & .NET Windows Forms projects
  • Grant high speed barcode reading & scanning from image file formats, like Jpg, Gif, Png, Bmp, Tiff
  • Able to scan maximum one barcode per image, page in tiff or pdf document in VB.NET class library
  • Able to decode partial linear or matrix barcode image instead of the whole file in VB.NET class library
  • Directly use free VB.NET code to recognize Codabar, Code 39, Code 128, QR Code, Data Matrix, PDF-417, ect
  • Provide royalty-free .NET Barcode Reader Library Server & Windows Application Distribution License
VB.NET Barcode Reader DLL for .NET Introduction
BarcodeLib.com VB.NET Barcode Reader Library is a mature .NET barcode recognition control that enable users to read & decode linear and 2d barcode images. It can be used in:
  • ASP.NET Website Projects
  • .NET Windows Forms Projects
  • .NET, C#, VB.NET Class Library
  • .NET Console Projects
Please note that, the first character of barcode data scanned by the trial package will be a random character.
How to Install VB.NET Linear & 2D Barcode Reader DLL?
  1. Installation requirement: Please firstly install Microsoft .NET Framework Version 2.0 or greater.
  2. Add "BarcodeLib.BarcodeReader.dll" to your Visual Studio VB.NET project reference.
How to Scan Barcode Images in VB.NET Barcode Reader SDK?
We provide free VB demo code for barcode scanning from image. Below are sample VB codes for Code 128 amd Data Matrix recognition. For other VB.NET 1d & 2d barcode reading tutorial, please refer to 1D & 2D Barcodes VB.NET Decoding.
     Dim datas() As String = BarcodeReader.read("c:/code128-barcode.gif", BarcodeReader.CODE128)

Dim datas() As String = BarcodeReader.read("c:/datamatrix-barcode.gif", BarcodeReader.DATAMATRIX)
These two free Visual Basic demo codes will respectively decode and output all Code 128 and Data Matrix barcodes in image files "code128-barcode.gif" & "datamatrix-barcode.gif".
How to Decode Maximum Barcode Image Using VB.NET Barcode Scanner DLL?
To recognize a large size image, like 4mb per image, you may need to set our VB.NET Barcode Scanner Library to imporve barcode reading speed.
  1. If there is a maximum one barcode per image, page in tiff or pdf document, please set maxOneBarcodePerPage to true.
  2. If maxOneBarcodePerPage is true, our VB.NET Barcode Reader Library will immediately stop reading the barcode once detects one barcode.
  3. If maxOneBarcodePerPage is false (default value), our VB.NET Barcode Scanner Library will use total 5 algorithms and each will read the whole image from 4 directions.
How to Read the Partial Barcode Image in VB.NET Barcode Reader DLL?
To scan the partial image instead of the whole file, you do as below.
  1. If the barcode is always located one specified area in the image, you can set and let the library scan that area only. And it will reduce lots of scanning time, CPU and memory usage.
  2. You just only need to specify the left top point and right bottom point of the area (the point X, Y values are expressed in percentage of the whole image, so image most left top point is (0%, 0%), and most right bottom point is (100%, 100%)).
Please use the Free VB code below to scan the top 20% and bottom 20% of a Code 128 barcode image.
     Dim setting As OptimizeSetting = New OptimizeSetting()


Dim top20 As ScanArea = New ScanArea(New Drawing.PointF(0.0F, 0.0F), New Drawing.PointF(100.0F, 20.0F))

Dim bottom20 As ScanArea = New ScanArea(New Drawing.PointF(0.0F, 80.0F), New Drawing.PointF(100.0F, 100.0F))

Dim areas As List(Of ScanArea) = New List(Of ScanArea)


Dim datas() As String = BarcodeReader.read("c:/code128-barcode.gif", BarcodeReader.CODE128, setting)
VB.NET Linear & 2D Barcodes Reading & Decoding
Please click each barcode to see its barcode Visual Basic .NET recognition tutorial:
1D Barcodes in VB.NET:
2D Barcodes in VB.NET:
Able to Scan Linear Barcode Types: Codabar, Code 39, Code 128, Interleaved 2 of 5, EAN 8, EAN 13, UPC-A, UPC-E.

Able to Scan Matrix Barcode Types: Data Matrix, PDF 417, QR Code.
For VB.NET barcode generating guide, please refer to:

.NET Barcode Scanner, ASP.NET Barcode Scanner, C#.NET Barcode Scanner, VB.NET Barcode Scanner, QR Code .NET Scanner, QR Code ASP.NET Scanner, QR Code C# Scanner, QR Code VB.NET Scanner, Data Matrix .NET Scanner, Code 128 .NET Scanner, Code 39 .NET Scanner. .NET Barcoding Generator Library, Java Barcoding Generator Library.