Our Customers
Contact Us Email: support@barcodelib.com
Home > ASP.NET Barcode Reader > Recognize Barcodes in ASP.NET Web, C#, VB.NET Programs
Download Barcode Reader for ASP.NET Trial

How to Scan Barcodes in ASP.NET Barcode Reader

Read & Decode barcodes in ASP.NET Web, ASP.NET class applications
  • Purely compiled in Visual C#.NET 2005, compatible with Visual Studio 2005/2008/2010
  • Add barcode scanning and reading capabilities to ASP.NET web service projects
  • Integrate .NET barcod decoding features into .NET Class Library and Console Application
  • Read and return popular 1D & 2D barcodes from digital images, bitmaps and scanned documents
  • Scan barcode images from all directions of 360 degrees using free C# & VB.NET class library
  • Enable to read several image formats as resources, such as gif, jpeg, png, tiff, and bmp
  • Provide affordable ASP.NET Barcode Reader Licenses for redistribution
ASP.NET Barcode Reader Trial Overview
In this package, you will find these files:
  • BarcodeLib.BarcodeReader.dll - .NET Barcode Scanner Library DLL for decoding barcode image.
  • demo_images - It has several barcode images. You can put your own images into that folder and run "runDemo.bat" to test. Or you may copy "demo_images" to C:\ drive. Then rename it as "images" and run "Demo.exe".
  • DeveloperGuide.html - It depicts how to scan barcodes using our .NET Barcode Reader Library.
  • LicenseAgreement.pdf - End user license agreement. Please read it before you use this product.
  • Purchase - Barcode Reader for .NET.html - This is used to order our .NET Barcode Reader License online.
Note: The first character of barcode data decoded by the trial package will be a random character.
How to Install ASP.NET Barcode Scanner SDK?
  1. .NET Version Requirement: .NET Framework 2.0 or later versions should be installed firstly.
  2. Add BarcodeLib.BarcodeReader.dll to your Visual Studio ASP.NET project reference.
How to Recognize Barcodes Using C#.NET Class Library?
Please use the free C# demo codes below to read your linear or 2d barcode iamges. We use EAN-13 amd PDF417 barcodes recognition as examples. For other linear or 2d barcodes, please refer to Supported ASP.NET 1D & 2D Barcodes Recognition.
     string[] results = BarcodeReader.read("c:/ean13-barcode.gif", BarcodeReader.EAN13);

string[] results = BarcodeReader.read("c:/pdf417-barcode.gif", BarcodeReader.PDF417);
The above free C# codes will respectively scan and return all EAN-13 and PDF417 barcodes in image files "ean13-barcode.gif" & "pdf417-barcode.gif".
We also provide two other ways to improve linear & matrix barcode recognition speed, especially when you read large image size (like 4mb per image).

1. Read Maximum One Barcode per Source File

  1. Set maxOneBarcodePerPage to true, if there is maximum one barcode per image or per page in tiff or pdf document.
  2. If maxOneBarcodePerPage is true, the .net barcode reader library will stop scanning the barcode immediately, once detects one barcode.
  3. If maxOneBarcodePerPage is false (default value), the library will use total 5 algorithms and each will scan the whole image from 4 directions.

2. Read A Part of Barcode Image

  1. Read the partial image instead of the whole file.
  2. If the barcode is always located one specified area in the image, you can set and let the library scan that area only. And it will reduce lots of scanning time, CPU and memory usage.
  3. You just specify the left top point and right bottom point of the area (the point X, Y values are expressed in percentage of the whole image, so image most left top point is (0%, 0%), and most right bottom point is (100%, 100%)).
The following C# code explains how to read top 20% and bottom 20% of a Code 39 image.
     OptimizeSetting setting = new OptimizeSetting();


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>();


string[] results = BarcodeReader.read("c:/code39-barcode.gif", BarcodeReader.CODE39, setting);
How to Recognize Barcodes Using VB.NET Class Library?
Please use free VB demo codes to read and decode barcode iamges. We take EAN-13 and PDF417 as examples. For other linear or 2d barcodes, please refer to Supported ASP.NET Linear & Matrix Barcodes Recognition.
     Dim datas() As String = BarcodeReader.read("c:/ean13-barcode.gif", BarcodeReader.EAN13)

Dim datas() As String = BarcodeReader.read("c:/pdf417-barcode.gif", BarcodeReader.PDF417)
The above free VB.NET demo codes will respectively decode all EAN-13 and PDF-417 barcodes in image files "ean13-barcode.gif" & "pdf417-barcode.gif".
Also, you can use the VB.NET demo code below to read top 20% and bottom 20% of a Code 39 image.
     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:/code39-barcode.gif", BarcodeReader.CODE39, setting)
How to Recognize Other ASP.NET 1D & 2D Barcodes?
Recognise 1D Barcodes:
Recognise 2D Barcodes:
Support Scanning Linear Barcodes: Codabar, Code 39, Code 128, Interleaved 2 of 5, EAN 8, EAN 13, UPC-A, UPC-E.

Support Scanning Matrix Barcodes: Data Matrix, PDF 417, QR Code.
BarcodeLib.com also provide .NET, C#, VB.NET, barcode image reading & decoding guide, please see:

.NET Barcode Scanner, ASP.NET Barcode Scanner, C# Barcode Scanner, VB.NET Barcode Scanner, .NET QR Code Scanner, ASP.NET QR Code Scanner, C# QR Code Scanner, VB.NET QR Code Scanner, .NET Data Matrix Scanner, .NET Code 128 Scanner,.NET Code 39 Scanner and ASP.NET Barcode Generator DLL, ASP.NET Barcode Generating Guide.