Home : Barcodes : Barcode Reader Basics (DotImage 7.0b thorugh DotImage 9.0d)
Q10266 - INFO: Barcode Reader Basics (DotImage 7.0b thorugh DotImage 9.0d)

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.

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.

 

Related Articles
No Related Articles Available.

Article Attachments
No Attachments Available.

Related External Links
No Related Links Available.
Help us improve this article...
What did you think of this article?

poor 
1
2
3
4
5
6
7
8
9
10

 excellent
Tell us why you rated the content this way. (optional)
 
Approved Comments...
No user comments available for this article.

Powered By InstantKB.NET v1.3
Copyright © 2002, 2017. InstantASP Ltd. All Rights Reserved