Barcode Scanning in VB.NET

Comprehensive Visual C# Codes for Barcode Scanning within .NET Imaging SDK

RasterEdge Barcode Reader supports high speed, accurate reading for over 100 different 1D and 2D barcode symbologies (types) and sub-types.
Barcode Scanning
Here is a detailed VB.NET sample for reading a barcode into image with RasterEdge .NET Imaging SDK and Barcode Scanner. (For C#.NET developers, please go to Barcode Reading for C#.NET. Want to view Image and document in Winforms or Web applications, please go to Reading Barcode in Winforms and Web Document Image Reading.)
Imports System.IO
Imports RasterEdge.Imaging
Imports RasterEdge.Imaging.Processing
Imports RasterEdge.Imaging.BarcodeScan

Read a Barcode

Read a barcode from images or documents with the following VB.NET codes:
Dim myImage As RaterEdgeImage = New RaterEdgeImage("barcodes.tif")
Using Barcode As BarCodeReader = New BarCodeReader(myImage)

Dim options As ReadOpts = New ReadOpts()
options.Direction = Directions.LeftToRight
options.Symbology = Symbologies.code39

Dim bars As Barcode[] = Barcode.ReadBars(options)
For (i As Integer = 0; i < bars.Length; i++)
System.Console.WriteLine(bars(i).ToString())
End Using

Read Check Digit

You may return check digit if the barcode has one with the following VB.NET codes:
ReadOpts opts = new ReadOpts()
opts.EnforceChecksum = false

Read Barcode Properties

Barcode properties can be easily detected with the following VB.NET codes:
Dim myImage As RaterEdgeImage = New RaterEdgeImage("barcodes.tif")
Using Barcode As BarCodeReader = New BarCodeReader(myImage)

Dim options As ReadOpts = New ReadOpts()
options.Direction = Directions.LeftToRight
options.Symbology = Symbologies.code39
Dim bars As Barcode[] = Barcode.ReadBars(options)
If bars.Length = 0 Then

'No barcodes read. Maybe the image was scanned upside down. Let's see
options.Direction = Directions.RightToLeft
bars = Barcode.ReadBars(options)
End If
End Using
More Tutorials!
Find more user guides with RasteEdge .NET Image SDK using VB.NET sample codings!
Want to install Imaging SDK in Winforms or Web applications, please go to Use Imaging SDK in Winforms and Web Document Image Viewer.