Online Guide

For Using BC.NetBarcodeReader.All2D in .NET
Scan, read, and recognize 2d barcodes QR Code, Data Matrix, and PDF417 from images Jpg, Jpeg, Png, Tiff, Bmp, and Gif.

Guide Overview

It's easy to use BC.NetBarcodeReader.All2D library to read and recognize barcode symbologies from images in your .NET projects. Here we will show you in simple steps. Please firstly download and get the free trial library (BC.NetBarcodeReaderTrial.All2D.dll). And the only thing for the integration of our library is to add your project reference to it.

We take the Console Application as an example of how to use BC.NetBarcodeReader.All2D library to scan and read 2d barcodes from images. For ease of use, here are simple code examples for C# and VB.NET developers. To recognize all 2d and 1d barcodes, you should use BC.NetBarcodeReader.All library.


1. You can scan and read a single 2D barcode type from an image using BC.NetBarcodeReader.All2D library.

How to in C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BC.NetBarcodeReaderTrial.All;

namespace BC.NetBarcodeReaderDemo
{
    class Program
    {
        static void Main(string[] args)
        {
            ReadOneBarcodeTypefromImage();
        }

        public static void ReadOneBarcodeTypefromImage()
        {
            string[] data = NetBarcodeReader.Recognize("Qrcode.png", NetBarcodeReader.Qrcode);

            /*string[] data1 = NetBarcodeReader.Recognize("F:/Pdf417.bmp", NetBarcodeReader.Pdf417);
            string[] data2 = NetBarcodeReader.Recognize("F:/Datamatrix.gif", NetBarcodeReader.Datamatrix);*/

            foreach (string result in data)
            {
                Console.WriteLine(result);
            }
            Console.ReadKey();
        }
    }
}

How to in VB.NET

Imports System
Imports System.Collections.Generic
Imports System.Linq
Imports System.Text
Imports BC.NetBarcodeReaderTrial.All

Module BCNetBarcodeReaderDemo  

    Sub Main()
        ReadOneBarcodeTypefromImage()
    End Sub

    Public Sub ReadOneBarcodeTypefromImage()
        Dim data As String() = NetBarcodeReader.Recognize("Qrcode.png", NetBarcodeReader.Qrcode)

        'Dim data1 As String() = NetBarcodeReader.Recognize("F:/Pdf417.tif", NetBarcodeReader.Pdf417)
        'Dim data2 As String() = NetBarcodeReader.Recognize("F:/Datamatrix.png", NetBarcodeReader.Datamatrix)

        For Each result As String In data
            Console.WriteLine(result)
        Next

        Console.ReadKey()
    End Sub

End Module

2. You can scan and read more than one 2D barcode types from image using BC.NetBarcodeReader.All2D library.

How to in C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BC.NetBarcodeReaderTrial.All;

namespace BC.NetBarcodeReaderDemo
{
    class Program
    {
        static void Main(string[] args)
        {
            ReadMultipleBarcodeTypesfromImage();
        }

        public static void ReadMultipleBarcodeTypesfromImage()
        {
            string[] data = NetBarcodeReader.Recognize("Multiple.jpg", NetBarcodeReader.Qrcode);
            string[] data1 = NetBarcodeReader.Recognize("Multiple.jpg", NetBarcodeReader.Pdf417);

            foreach (string result in data)
            {
                Console.WriteLine(result);
            }
            foreach (string result1 in data1)
            {
                Console.WriteLine(result1);
            }
            Console.ReadKey();
        }
    }
}

How to in VB.NET

Imports System
Imports System.Collections.Generic
Imports System.Linq
Imports System.Text
Imports BC.NetBarcodeReaderTrial.All

Module BCNetBarcodeReaderDemo  

        Sub Main()        
            ReadMultipleBarcodeTypesfromImage()    
        End Sub

        Public Sub ReadMultipleBarcodeTypesfromImage()
            Dim data As String() = NetBarcodeReader.Recognize("Multiple.jpg", NetBarcodeReader.Qrcode)
            Dim data1 As String() = NetBarcodeReader.Recognize("Multiple.jpg", NetBarcodeReader.Datamatrix)

            For Each result As String In data
                Console.WriteLine(result)
            Next

            For Each result1 As String In data1
                Console.WriteLine(result1)
            Next

            Console.ReadKey()
        End Sub

End Module




Guide for Each Barcode Symbology