Our Customers
Contact Us Email: support@barcodelib.com
Home > Barcode ASP.NET Scanner > Barcode Scanning in ASP.NET > Decode Interleaved 2 of 5 barcode in ASP.NET Application
Download Barcode Reader for ASP.NET Trial

Interleaved 2 of 5 Barcode Scanner for ASP.NET Applications

Read Linear Barcode Interleaved 2 of 5 in ASP.NET Project Using VB.NET & C#
  • Time-tested interleaved 2 of 5 barcode reader for ASP.NET Web application
  • Compile functional interleaved 2 of 5 barcode reading capacity into a single dll
  • Support decoding & reading interleaved 2 of 5 barcode in ASP.NET using VB.NET
  • Support scanning interleaved 2 of 5 barcode in ASP.NET using C# class code
  • Able to recognize other linear barcode images in ASP.NET Web service, like Code 39
  • Easy to decode common 2d barcode images in ASP.NET web site, including Data Matrix
Install Interleaved 2 of 5 Barcode Reading Library to ASP.NET Web Service
Without any activation key or registration codes, you can direct install this interleaved 2 of 5 barcode reader to your ASP.NET web application by simply adding BarcodeLib.BarcodeReader.dll to the reference of your ASP.NET project.
Use C# to Decode Interleaved 2 of 5 Barcode in ASP.NET Web Site
This interleaved 2 of 5 barcode decoding control is used to read & decode linear barcode type interleave 2 of 5 barcode image in ASP.NET web applications. By copying following C# class code, you can quickly and accurately read & output all the interleaved 2 of 5 barcodes from the png image file.
     string[] results = BarcodeReader.read("c:/interleaved25-aspnet.png", BarcodeReader.INTERLEAVED25);
Use VB.NET to Recognize Interleaved 2 of 5 Barcode in ASP.NET Web Site
After installing the BarcodeLib.BarcodeReader.dll, you can scan & draw all the interleaved 2 of 5 barcodes from the target image file.
     Dim datas() As String = BarcodeReader.read("c:/interleaved25-aspnet.png", BarcodeReader.INTERLEAVED25)
Optimize Interleaved 2 of 5 Barcode Scanning Effect for ASP.NET Project
Besides the common way to read Interleaved 2 of 5 barcode in ASP.NET project, you can also optimize the ASP.NET interleaved 2 of 5 barcode reading efficiency by using following two methods.
Method 1: Set "maxOneBarcodePerPage" to true.
This scanning method applies to maximum interleaved 2 of 5 barcode recognition in ASP.NET web application. After you set "maxOneBarcodePerPage" to true, the ASP.NET barcode reading library will stop scanning interleaved 2 of 5 barcodes once it detects the interleaved 2 of 5 barcode.
If you set "maxOneBarcodePerPage" to false (the default value of this property is false.), the ASP.NET barcode reading will scan interleaved 2 of 5 barcode using total 5 algorithms and each will scan the whole image from 4 directions.
Method 2: Locate scanning area with the help of coordinates.
This ASP.NET interleave 2 of 5 barcode scanner has set the most left top point of target image file as (0%, 0%), and the most right bottom point of target image file as (100%, 100%). Thus, you can manage to locate the scanning area with the help of coordinates.
For example, if the interleaved 2 of 5 barcode is located in the top 20% and bottom 20% area of the image, you can use following C# or VB.NET class code to direct the ASP.NET barcode reading component to scan interleaved 2 of 5 in that area.
For reading interleaved 2 of 5 barcode in C# ASP.NET application
     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:/ interleaved25-aspnet.png", BarcodeReader.INTERLEAVED25, setting);
For encoding interleaved 2 of 5 barcode in VB.NET ASP.NET project
     Dim setting As OptimizeSetting = New OptimizeSetting()

setting.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:/ interleaved25-aspnet.png", BarcodeReader.INTERLEAVED25, setting)
ASP.NET Barcode Scanner Supported Barcodes
All Linear / 1D Barcodes:
All Matrix / 2D Barcodes: