- Coded completely in VB.NET with full integration into Microsoft .NET Framework & many Windows systems
- Compatible with ISO/IEC & GS1 symbology specifications to read barcode images
- Using Barcode Control Library to scan, read barcodes in ASP.NET websites/webservice, WinForms, etc
- Easy to scan, recognize 1D and matrix barcode images in Visual VB.NET & console applications
- Support multiple high quality linear barcodes reading, including alphanumeric barcodes
- Reliable VB.NET barcode reader component to recognize barcode
KA.Barcode Reader for .NET SDK supports scan, recognize barcodes from image files
for ASP.NET Web, .NET WinForms, Crystal Reports, and
RDLC Report applications with VB.NET programming.
It supports more than 10 barcode types including linear and matrix barcodes:
Linear Barcodes:
Codabar,
Code 39,
Code 128,
EAN-128,
EAN-8, EAN-13,
Interleaved 2 of 5,
UPC-A,
UPC-E.
2D Barcodes: QR Code, Data Matrix, PDF-417.
Download KA.Barcode Reader for .NET Suite Trial Version
Perpetual Evaluation
We offer perpectual evaluation/trial version of this barcode generator library.
Restrictions of Evaluation
If you want to use barcode reading function for commercial application, you need to buy our developer licenses.
How to Read Barcodes with VB.NET Class
KA.Barcode Reader SDK for VB.NET allows several methods to scan, read barcodes from image files in VB.NET. Here is the VB.NET sample code for you:
Dim inputImageFile As String = "D:\sample.png"
'Read QRCode from an image file.
Dim msgs() As String = BarcodeReader.readBarcodeMessage(inputImageFile, BarcodeType.QRCode)
If Not msgs Is Nothing And msgs.Length > 0 Then
For Each msg As String In msgs
Console.WriteLine("Message: " + msg)
Next
Else
Console.WriteLine("[No Barcode Found]")
How to Read Barcodes from Stream objects in VB.NET
Dim inputImageFile As String = "D:\sample.png "
Using stream As Stream = File.Open(inputImageFile, FileMode.Open, FileAccess.Read)
Dim bitmap As System.Drawing.Bitmap = New System.Drawing.Bitmap(stream)
'Read QRCode from a Bitmap object.
Dim msgs() As String = BarcodeReader.readBarcodeMessage(bitmap, BarcodeType.QRCode)
If Not msgs Is Nothing And msgs.Length > 0 Then
For Each msg As String In msgs
Console.WriteLine("Message: " + msg)
Next
Else
Console.WriteLine("[No Barcode Found]")
End If
End Using
How to Scan and Read Barcode from Specified region in image using VB.NET Class
Dim inputImageFile As String = "D:\sample.png"
'Set scan region(s) in the input image.
Dim regions As List(Of KeepAutomation.BarcodeReader.Region) = New List(Of KeepAutomation.BarcodeReader.Region)
'Region:
'xMin - 10% of the image width; xMax - 90% of the image width.
'yMin - 50% of the image height; yMax - 100% of the image height.
regions.Add(New KeepAutomation.BarcodeReader.Region(10, 90, 50, 100))
'Read QRCode from an image file.
Dim msgs() As String = BarcodeReader.readBarcodeMessage(inputImageFile, BarcodeType.QRCode, regions)
If Not msgs Is Nothing And msgs.Length > 0 Then
For Each msg As String In msgs
Console.WriteLine("Message: " + msg)
Next
Else
Console.WriteLine("[No Barcode Found]")
End If
how to read barcode with different barcode types
Dim inputImageFile As String = "D:\sample.png"
'Try to read Code128
Dim msgs() As String = BarcodeReader.readBarcodeMessage(inputImageFile, BarcodeType.Code128)
If Not msgs Is Nothing And msgs.Length > 0 Then
For Each msg As String In msgs
Console.WriteLine("Code128: " + msg)
Next
Else
Console.WriteLine("[No Code128 Found]")
End If
'Try to read DataMatrix
msgs = BarcodeReader.readBarcodeMessage(inputImageFile, BarcodeType.DataMatrix)
If Not msgs Is Nothing And msgs.Length > 0 Then
For Each msg As String In msgs
Console.WriteLine("DataMatrix: " + msg)
Next
Else
Console.WriteLine("[No DataMatrix Found]")
End If
'Try to read QRCode
msgs = BarcodeReader.readBarcodeMessage(inputImageFile, BarcodeType.QRCode)
If Not msgs Is Nothing And msgs.Length > 0 Then
For Each msg As String In msgs
Console.WriteLine("QRCode: " + msg)
Next
Else
Console.WriteLine("[No QRCode Found]")
End If