.NET Barcode Reader & Scanner SDK Tutorial
Scan, read linear, 2d barcode images in .NET application
Download .NET Barcode Reader Free Evaluation
Purchase .NET Barcode Reader License
"This barcode library is supremely well written, quick, hassle-free tools. It worked great."
- Joel Bader, US

Scan & Read Linear & 2D BarCodes in .NET applications using .NET Barcode Reader Control

.NET Barcode Reader is a .NET barcode scanning control which scan and read 1D (linear) and 2D (matrix) barcodes from image files. Besides .NET Barcode Reader library, OnBarcode also provides .NET Barcode Generator for generating linear and 2D barcodes in the .NET applications.
This article provides detailed developer guide for .NET Barcode Reader SDK. To use this article, you need first download the evaluation version of .NET Barcode Reader from our site.
Besides this article for .NET developers, we also provide the following articles for C#, VB.NET professionals.
  • C# Barcode Reader - Guide for scanning and reading barcodes in C# using .NET Barcode Reader Control
  • VB.NET Barcode Reader - Guide for scanning and reading barcodes in VB.NET using .NET Barcode Reader Control
.NET Barcode Reader Package Overview
Top
  • OnBarcode.Barcode.BarcodeScanner.dll - .NET Barcode Reader SDK Control for you to integrate into your .NET project
  • BarcodeLabelsScanner.exe - Free Barcode Scanner Software for you to test the barcode reading performance easily and quickly
  • DeveloperGuide.html - .NET Barcode Reader SDK developer guide
.NET Barcode Reader Install & Requirement
Top

Requirement

You need install Microsoft .NET Framework Version 2.0 or later version.

Install

Add OnBarcode.Barcode.BarcodeScanner.dll into your .NET project reference.
How to read barcodes using .NET Barcode Reader?
Top

Scan barcodes from the image documents

Read barcodes from image is a simple task with barcode reader for .net control.
Here is the sample demo code in C# to scan barcodes from image files
   String[] barcodes = BarcodeScanner.Scan("code39image.gif", BarcodeType.Code39);
Pass your barcode image file, and barcode type to BarcodeScanner.Scan method, and it will scan the image and return all barcodes found.

Scan barcodes from .NET image object

To scan barcodes from System.Drawing.Bitmap object.
   System.Drawing.Bitmap objImage = ...
String[] barcodes = BarcodeScanner.Scan(objImage, BarcodeType.Code39);

Scan barcodes from the defined area within the image

To scan barcodes from defined area in the image document. The following C# codes will scan user defined area (left top point is [0, 0], right bottom point is [200, 300]) from the image document.
   List<SRegion> areas = new List<SRegion>();
SRegion area = new SRegion(0, 0, 50, 60);
areas.Add(area);

string[] barcodes = BarcodeScanner.ScanRegions("code39image.gif", BarcodeType.Code39, areas);

Scan maximum 1 barcode from the image

If there is maximum one barcode in the image file, to improve the reading speed, you can use the following method to scan the barcode.
   String[] barcodes = BarcodeScanner.ScanSingleBarcode("code39image.gif", BarcodeType.Code39);

.NET Barcode Scanner Supported Barcode Types
Top

.NET Barcode Reader SDK - Barcode Image Scanning

OnBarcode is a market-leading provider of barcode imaging generator, reader controls and components for ASP.NET, Windows Forms, WPF, as well Java, Android, iOS (iPhone, iPad) across all major enterprise development platforms. We provides comprehensive tutorials and how-tos for various linear, 2d barcode information, such as C# in ASP.NET, C# .NET, C# Barcode Encoding, C# Barcode Image, VB.NET in ASP.NET, VB.NET Winforms, VB.NET Barcode Encoding. OnBarcode barcode products are supported by RasterEdge ASP.NET Document Viewer, which supports ASP.NET PDF Viewer, ASP.NET MVC Document Viewer, ASP.NET PDF Editor, MVC PDF Viewer. And provide high quality C# Convert PDF to Tiff, C# Convert PDF to Word, C# Convert PDF to HTML, C# Convert PDF to Jpeg images, and their easy and simple documents, like C# PDF SDK, C# extract text from PDF, C# Compress PDF, Print PDF in C# and C# extract image from PDF.
Terms of Use | Privacy Policy
Copyright © OnBarcode.com . All rights reserved.