For Using BC.NetBarcodeReader.Code39 in .NET
Scan, read, and recognize linear/1d barcode Code 39 from raster images Jpg, Jpeg, Png, Tiff, Bmp, and Gif.
It's easy to use BC.NetBarcodeReader.Code39 reader library to decode and read Code 39 symbologies from images in your .NET applications. Here we will show you in simple steps. Please firstly download and get the free trial library (BC.NetBarcodeReaderTrial.Code39.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.Code39 reader library to decode and read Code 39 bar codes from images. For ease of use, here are simple code examples for C# and VB.NET developers. To read all linear and 2d barcode symbologies, you should use the library, BC.NetBarcodeReader.All.
1. Decode and read Code 39 barcode symbologies from an image using BC.NetBarcodeReader.Code39 reader library. We also provide Code 39 scanning solution for PDF document. If you are also interested in this, please see our product BC.NetPdfBarcodeReader.All and its online tutorial: how to decode barcodes from PDF document.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BC.NetBarcodeReaderTrial.Code39;
namespace BC.NetBarcodeReaderDemo
{
class Program
{
static void Main(string[] args)
{
ReadOneBarcodeTypefromImage();
}
public static void ReadOneBarcodeTypefromImage()
{
string[] data = NetBarcodeReader.Recognize("Code39.gif", NetBarcodeReader.Code39);
foreach (string result in data)
{
Console.WriteLine(result);
}
Console.ReadKey();
}
}
}
Imports System
Imports System.Collections.Generic
Imports System.Linq
Imports System.Text
Imports BC.NetBarcodeReaderTrial.Code39
Module BCNetBarcodeReaderDemo
Sub Main()
ReadOneBarcodeTypefromImage()
End Sub
Public Sub ReadOneBarcodeTypefromImage()
Dim data As String() = NetBarcodeReader.Recognize("Code39.gif", NetBarcodeReader.Code39)
For Each result As String In data
Console.WriteLine(result)
Next
Console.ReadKey()
End Sub
End Module