Search

Atalasoft Knowledge Base

INFO: Barcode Reader Basics (DotImage 7.0b thorugh DotImage 9.0d)

Administrator
DotImage

NOTICE

This article is for versions 7.0b through version 9.0d. With version 7.0b a new barcoding library has been released: Atalasoft.dotImage.Barcoding.dll. This library provides access to our new engine. It differs from the style of the old engine to allow additional functionality.

Main Article

Beginning in DotImage 10.0, Atalasoft.dotImage.Barcoding.dll was replaced with Atalasoft.dotImage.Barcoding.Reading.dll ... updating the namespace to Atalasoft.dotImage.Barcoding.Reading will allow for the same code below to work.

Here is a basic method that reads the barcodes datastring:

C#

BarCode[] bars;
using (BarCodeReader reader = new BarCodeReader(imageViewer1.Image, true))
{
    ReadOpts opts = new ReadOpts();
    opts.Symbology = Symbologies.All;
    bars = reader.ReadBars(opts);
}
foreach (BarCode bar in bars)
{
     MessageBox.Show(bar.DataString);
}
if (bars.Length == 0)
     MessageBox.Show("No Barcodes Found");

VB.NET

Dim bars As BarCode()
Using reader As New BarCodeReader(imageViewer1.Image, True)
    Dim opts As New ReadOpts()
    opts.Symbology = Symbologies.All
    bars = reader.ReadBars(opts)
End Using
For Each bar As BarCode In bars
    MessageBox.Show(bar.DataString)
Next
If bars.Length = 0 Then
    MessageBox.Show("No Barcodes Found")
End If

This new engine no longer supports the MicroQr, Planet, AustraliaPost, Code11, IntelligentMail,Itf14, Rss14, RssLimited, Telepen or Rm4scc symbologies.

Original Article:
Q10266 - INFO: Barcode Reader Basics (DotImage 7.0b thorugh DotImage 9.0d)
Details
Last Modified: 6 Years Ago
Last Modified By: Administrator
Type: INFO
Article not rated yet.
Article has been viewed 458 times.
Options
Also In This Category