Getting started in Visual Basic .NET and Bytescout.BarCode Reader SDK for .NET 2.00 or higher - ByteScout
Announcement
Our ByteScout SDK products are sunsetting as we focus on expanding new solutions.
Learn More Open modal
Close modal
Announcement Important Update
ByteScout SDK Sunsetting Notice
Our ByteScout SDK products are sunsetting as we focus on our new & improved solutions. Thank you for being part of our journey, and we look forward to supporting you in this next chapter!

Getting started in Visual Basic .NET and Bytescout.BarCode Reader SDK for .NET 2.00 or higher

  • Home
  • /
  • Articles
  • /
  • Getting started in Visual Basic .NET and Bytescout.BarCode Reader SDK for .NET 2.00 or higher

The following sample demonstrates how to read barcode from photo image (BarcodeImage.jpg file) in Visual Basic.NET using Bytescout BarCode Reader SDK for .NET

Sample input image for barcode recognition:
barcode vb net

Running sample barcode reading application:barcode reader visual basic

Imports System.IO

Imports Bytescout.BarCodeReader

Module Module1

Sub Main()
Dim pat As String = “….BarcodePhoto.jpg”
Console.WriteLine(“Reading barcode(s) from image {0}”, Path.GetFullPath(pat))

Dim bc As New Reader()
Dim barcodes As FoundBarcode() = bc.ReadFrom(pat)

Dim i As Integer
For i = 0 To barcodes.Length – 1
Console.WriteLine(“Found barcode with type ‘{0}’ and value ‘{1}'”, barcodes(i).Type, barcodes(i).Value)
Next

Console.WriteLine(“Press any key to exit..”)
Console.ReadKey()
End Sub

End Module

Tutorials:

prev
next