Our Customers
Contact Us Email: support@barcodelib.com
Download Barcode Reader for ASP.NET Trial

EAN 13 Barcode Reader in ASP.NET Web Services

Scan & Decode EAN 13 Barcode in ASP.NET Web Applications
  • Mature ASP.NET EAN 13 barcode scanner with wide popularity among .NET developers
  • Written in managed C# and support major .NET development tools, like Visual Studio
  • Easy to be used in ASP.NET web project, without registration code or activation keys
  • Decode EAN 13 barcode images with high recognition rate and fast scanning speed
  • Support major 1D & 2D barcodes scanning in ASP.NET project using C# or VB.NET class
  • Use little time to read maximum EAN 13 barcode per image in ASP.NET website program
Installation of EAN 13 Barcode Reader in ASP.NET Project
  1. Just integrate "BarcodeLib.BarcodeReader.dll" into your ASP.NET project by adding reference.
Use C# Library Code to Read EAN 13 Barcode in ASP.NET Website
With one-line C# code, you could read & output all the EAN 13 barcodes from your image file to data string.

For example, if you need to scan all the EAN 13 barcodes from a gif image file (which is located in C Drive called "ean13-aspnet"), you just need to write following C# code:
     string[] results = BarcodeReader.read("c:/ean13-aspnet.gif", BarcodeReader.EAN13);
Then, the reader will recognize & output all the EAN 13 barcodes from this gif image file to data string.
Use VB.NET Lib Code to Decode EAN 13 Barcode in ASP.NET Website
With the help of our .NET barcode decoding dll, it is unbelievably easy to read & decode all EAN 13 barcodes from several image formats, including gif, png, tiff, bmp and jepg files.
The following is free VB.NET code to recognize & scan all EAN 13 barcodes from a gif image file (which is located in C Drive, called "ean13-aspnet").
     Dim datas() As String = BarcodeReader.read("c:/ean13-aspnet.gif", BarcodeReader.EAN13)
Speed up Reading Rate of ASP.NET EAN 13 Barcode Reading SDK
ASP.NET EAN 13 Barcode Reader from BarcodeLib.com equips itself with the ability to adjust its scanning speed in different situations.
  1. There is a maximum EAN 13 barcode in the source image:
    When you are under this situation, you can set maxOneBarcodePerPage to true, so the reader will stop scanning once it finds an EAN 13 barcode.

    Otherwise, the ASP.NET scanner will use total 5 algorithms and each will read the whole image from 4 directions.

  2. There is an EAN 13 barcode in certain part of the image file:
    The EAN 13 ASP.NET barcode decoder from BarcodeLib.com also allows users to scan partial image. This feature demonstrates great importance especially when you are going to scan a large-size image file or EAN 13 barcodes are located in some fixed area. Under this situation, you can largely reduce the scanning time by directing the reader to scan the specific area.

    To help you achieve that purpose, our ASP.NET barcode scanner specify that the most left top point is (0%, 0%), and most right bottom point is (100%, 100%). The point X, Y values are expressed in percentage of the whole image. Thus, users could easily locate a specific area using different coordinates.

    Now assume user needs to scan the top 20% and bottom 20% area, he just needs to write the below codes:
For C#.NET programming:
     OptimizeSetting setting = new OptimizeSetting();

setting.setMaxOneBarcodePerPage(true);

ScanArea top20 = new ScanArea(new PointF(0.0F, 0.0F), new PointF(100.0F, 20.0F));

ScanArea bottom20 = new ScanArea(new PointF(0.0F, 80.0F), new PointF(100.0F, 100.0F));

List<ScanArea> areas = new List<ScanArea>();
areas.Add(top20);
areas.Add(bottom20);

setting.setAreas(areas);

string[] results = BarcodeReader.read("c:/ean13-aspnet.gif", BarcodeReader.EAN13, setting);
For VB.NET programming:
     Dim setting As OptimizeSetting = New OptimizeSetting()

setMaxOneBarcodePerPage(True)

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)
areas.Add(top20)
areas.Add(bottom20)

setting.setAreas(areas)

Dim datas() As String = BarcodeReader.read("c:/ean13-aspnet.gif", BarcodeReader.EAN13, setting)
ASP.NET EAN 13 Barcode Scanning SDK Supported Barcode Types
ASP.NET barcode scanner provided by BarcodeLib.com can support over 10 linear & 2D barcodes. Following are quick links to those major barcode types:
All Linear / 1D Barcodes:
All Matrix / 2D Barcodes: