Our Customers
Contact Us Email: support@barcodelib.com
Home > ASP.NET Barcode Scanner > How to Read Barcode in ASP.NET > ASP.NET Data Matrix Barcode Reader Library Guide, Free to Download Trial
Download Barcode Reader for ASP.NET Trial

How to Decode Data Matrix in ASP.NET Program

Read & Recognise 2D Barcode Data Matrix Image for ASP.NET Web Applications
  • Compile ASP.NET Data Matrix recognition functions into a strong named, digitally signed and time-stamped DLL
  • Mature .NET Barcode Reading & Scanning Library for ASP.NET Web Data Matrix barcode reading applications
  • Compatible with Visual Studio 2005/2008/2010 and .NET Framework 2.0, 3.0, 3.5, 4.0
  • Easy to add ASP.NET Data Matrix barcode reader dll to ASP.NET, Windows, Class Library, and Console projects
  • Able to use C# or VB.NET code to control Data Matrix barcode reading for ASP.NET Web Services and Web Site
  • Read Data Matrix barcode for ASP.NET and scan most popular linear & 2d barcode images in source image
  • Available to order ASP.NET Barcode Reader SDK Server Licenses or Windows Applicaition License
ASP.NET Data Matrix Barcode Reader SDK - Integration
  1. Download ASP.NET Barcode Reader Library free trial version.
  2. Find BarcodeLib.BarcodeReader.dll in downloaded package and add it to your ASP.NET project reference.
ASP.NET Data Matrix Reader Library - Using C# Class Library
Please copy the C# demo code below to your ASP.NET class library. Then our Data Matrix Reader DLL will detect your Data Matrix barcode and quickly return its data string or binary values.
By doing this, all Data Matrix barcodes data in sample image "datamatrix-aspnet.gif" will be scanned and decoded.
     string[] results = BarcodeReader.read("c:/datamatrix-aspnet.gif", BarcodeReader.DATAMATRIX);
ASP.NET Data Matrix Reader Library - Using VB.NET Class Library
Please use the VB.NET sample code below to scan and output all Data Matrix barcodes from your ASP.NET project source file. Here, let's take "datamatrix-aspnet.gif" as an example.
     Dim datas() As String = BarcodeReader.read("c:/datamatrix-aspnet.gif", BarcodeReader.DATAMATRIX)
Still, all Data Matrix barcodes data in sample image "datamatrix-aspnet.gif" will be read and decoded.
ASP.NET Data Matrix Scanner SDK - Achieve High Speed Reading
To fulfill different requirements for ASP.NET Data Matrix barcode reading, we developed some special functions for high-speed barcode reading from a large source image (like 4mb per image).
  1. To read maximum one Data Matrix barcode: If there is maximum one Data Matrix barcode per image, per page in tiff or pdf document, please:
    a. Set "maxOneBarcodePerPage" to true, then the process of Data Matrix recognition will be stopped when our ASP.NET Data Matrix Barcode Scanner Library detects one Data Matrix barcode.

    b. Set "maxOneBarcodePerPage" to true (default value), and our ASP.NET Data Matrix Barcode Scanner Library will use total 5 algorithms and each will read the whole image from 4 directions.

  2. To scan a special part of source image instead of the whole file: If the QR Code is always at a specific area in the source image file, please:
    a. Set our ASP.NET Data Matrix Reader Library to read that area only. This can save lots of reading time, CPU and memory usage.

    b. To do so, you need to demonstrate 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%)). And we provide the following free C# & VB.NET codes to achieve this.
Free C# Sample Code for ASP.NET Data Matrix Reading:
     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:/datamatrix-aspnet.gif", BarcodeReader.DATAMATRIX, setting);
Free VB.NET Sample Code for ASP.NET Data Matrix Reading:
     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:/datamatrix-aspnet.gif", BarcodeReader.DATAMATRIX, setting)
Other Linear & 2D Barcodes Reading & Decoding in ASP.NET Web Program
In addition to Data Matrix barcode, this ASP.NET Barcode Reader Library also decodes the following 1d and 2d barcode images:
All Linear / 1D Barcodes:
All Matrix / 2D Barcodes:
If you need to know Data Matrix barcode recognition in .NET, C#, VB.NET projects, please see as below: