QR Code Image Sample - pqScan.com
.NET Barcode Scanner SDK Building up Perfect Quality Barcode Reading Software for .NET Online Demo Download Trial Purchase Now
C#.NET
VB.NET

.NET Barcode Reader: VB.NET Guide

back to home  >  .NET Barcode Scanner SDK  >  Read Barcodes in .NET  >  VB.NET Barcode Scanning

In addition to C# Guide for Barcode Scanning, pqScan.com also depicts online tutorial for VB.NET developers. If you are programmer in VB.NET, then here is the right place for you to obtain barcode image reading APIs for VB.NET programming environment. Also, you can directly use free demo codes provided to scan and decode all bar codes from images at fast speed.

In details, you are allowed to use designed API to decode and recognize all 1d and 2d barcodes on images files, such as bmp, jpeg, jpg, png, tif, gif and so on. Meanwhile, VB.NET users can also direct our Barcode Scanner Library for .NET to read and decode a specific barcode type from loaded image source. And images can be in forms of memory and local file in your Visual Basic application. We also offer online guide for scanning barcode image from PDF document in VB.NET to match special demand.

Our .NET Solution for Barcode Recognition supports all Windows systems. And the requirement for using this solution is with .NET Framework 2.0 or later versions installed on PC. Now, let's start barcode scanning in Visual Basic .NET application!

Read ALL Barcodes from Image

Just imagine there are many barcodes on your image source and you may do not know the exact bar code type for each. Then, you may use the following three .NET APIs. And barcode reading work in VB.NET programming will be accomplished easily.

Public Shared FunctionScan(bitmap As Bitmap) As BarcodeResult()
EndFunction
Public Shared FunctionScan(stream As Stream) As BarcodeResult()
EndFunction
Public Shared FunctionScan(filename As String) As BarcodeResult()
EndFunction

Read Certain Barcode Type from Image

On the contrary, if you know your target barcode type, there's no need for recognizing all barcodes from your image file. Instead, to save the time of reading barcode in VB.NET application, you may try these APIs as below. As you see, before running VB.NET project, you can define a target barcode type and direct our .NET barcode scanner dll to read them all from image.

Public Shared FunctionScan(bitmap As Bitmap, barType As BarCodeType) As BarcodeResult()
EndFunction
Public Shared FunctionScan(stream As Stream, barType As BarCodeType) As BarcodeResult()
EndFunction
Public Shared FunctionScan(filename As String, barType As BarCodeType) As BarcodeResult()
EndFunction

With above APIs, you can easily read and decode more than 10 linear and 2d bar codes from image files in Visual Studio VB.NET project. Please see respective guide page from the right menu bar (under Barcode Type section).

VB.NET Demo Codes

If you want to test all bar codes decoding feature in VB.NET program, please download free trial package of Barcode Recognition Software for .NET online. And this part only gives you two examples of scanning barcodes from image in bitmap form using VB.NET programming language.

VB Code: How to Read All Barcode Types

Public Sub ScanAllTypeBarcode(bmp As Bitmap)
Dim results As BarcodeResult() = BarCodeScanner.Scan(bmp)
For Each result As BarcodeResult In results
Console.WriteLine((result.BarType.ToString() & "-") + result.Data)
Next
End Sub

VB Code: How to Read Certain Barcode Type

Public Sub ScanSpecifiedTypeBarcode(bmp As Bitmap)
Dim results As BarcodeResult() = BarCodeScanner.Scan(bmp, BarCodeType.Code128)
For Each result As BarcodeResult In results
Console.WriteLine((result.BarType.ToString() & "-") + result.Data)
Next
End Sub
pqScan SDK
Barcode Scanner for .NET
Online Guide
.NET Barcode Recognition C# Barcode Recognition
Barcode Type
VB/C# Demo: Read QR Code VB/C# Demo: Read Data Matrix VB/C# Demo: Read PDF-417 VB/C# Demo: Read Aztec Code VB/C# Demo: Read EAN-13 VB/C# Demo: Read EAN-8 VB/C# Demo: Read UPC-A VB/C# Demo: Read UPC-E VB/C# Demo: Read Code 128 VB/C# Demo: Read Code 39 VB/C# Demo: Read Code 93 VB/C# Demo: Read Codabar VB/C# Demo: Read ITF-14
Tool like pqScan .NET Barcode Reader SDK enables us to add high quality bar code scanning feature in our application. It is the kind of product that is taking our business to a different level. Andy Green