Our Customers
Contact Us Email: support@barcodelib.com
Home > .NET Barcode Reader Library > Barcode Recognition Using VB.NET > VB.NET Codabar Barcode Reader & Scanner
Download Barcode Reader for .NET Trial

How to Read & Recognize Codabar in VB.NET Project

Offer Free VB.NET Class Code for Reading & Decoding Codabar Barcode from Image File
  • High-quality VB.NET Codabar barcode reading used for over 1000 developers
  • Be installed easily to VB.NET class project by adding a dll reference
  • Decode Codabar barcode from gif, png, jpeg and bmp image files using VB.NET code
  • Read Codabar barcode from multi-page TIFF documents using VB.NET code
  • Easy to read Codabar barcode from large-size source image file in VB.NET class
  • Able to read most 1d & 2d barcode types, like read Code 128 in VB & read QR Code in VB
How to Integrate Codabar Decoding DLL to VB.NET Project
  1. Just add "BarcodeLib.BarcodeReader.dll" to your VB.NET project reference.
How to Decode Codabar Barcode Using VB.NET Class Code
Using one-line VB.NET class code, you can read & decode all Codabar barcodes from target image file. But to protect our copyright, the trial VB.NET barcode reader component will decode Codabar barcode and return the first character with random value.
      Dim datas() As String = BarcodeReader.read("c:/ codabar-vbnet.gif ", BarcodeReader.CODABAR)
How to Read & Decode Codabar from Large-Size Barcode Image
As for reading & decoding .NET Codabar barcode from large-size image file, you can largely improve the barcode reading efficiency by using following two ways.
  1. Read maximum Codabar barcode per page

    If there is only one Codabar barcode in the target image file, then you can set "maxOneBarcodePerPage" to true. Then the barcode scanner library will not scan once it detects a Codabar barcode in VB.NET project.

    Otherwise, it will use total 5 algorithms to detect Codabar and each will scan the whole image from 4 directions.

  2. Decode Codabar barcode from specified area of source image

    When scanning some large-size source image files, it will be much more effective if we save the time that spend on scanning the non-barcode region. And our VB.NET barcode scanner can help you achieve that by offering the capacity to define scanning area.

    For example, if you want to scan the top 20% and bottom 20% area of source image, you can use following VB.NET class code to achieve that.

    Note: The most top left point is (0%, 0%) and the most bottom right point is (100%, 100%).
     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:/codabar-vbnet.gif", BarcodeReader.CODABAR, setting)
Barcode Types Supported in VB.NET Barcode Scanner Library
Decode VB 1D Barcodes:
Decode VB 2D Barcodes: