Guide for VB.NET
Core Document Formats
Additional Features
UPC-A

VB.NET Imaging - Use VB to Decode 1D UPC-A

VB.NET Sample Codes and Guide to Decode & Scan UPC-A in .NET Project

VB.NET
Home > .NET Imaging SDK > VB.NET > Decode UPC-A on Doc Image
To get started with DocImage SDK for .NET, you are supposed to read VB.NET Imaging: Get Started first!

VB.NET Barcode Decoder for UPC-A Overview
RasterEdge .NET Image SDK contains a barcode reading plug-in library which can efficiently add UPC-A barcode scanning & detecting ability into your VB.NET imaging application. Using this UPC-A barcode reader for VB.NET, developers can read UPC-A linear barcodes at a fast speed from image (including png, jpeg, gif, tiff and bmp currently), and other document formats, such as PDF docuemnt and Microsoft Word file.
Related .net document control helps:
asp.net mvc document viewer: ASP.NET MVC Document Viewer: view, annotate, redact files on ASP.NET MVC web projects
asp.net document viewer c#: ASP.NET Document Viewer using C#: Open, View, Annotate, Redact, Convert document files in ASP.NET using C#, HTML5, JQuer...
asp.net edit pdf image: ASP.NET PDF Image Edit Control: online insert, edit PDF images in C#
asp.net pdf document viewer: ASP.NET PDF Document Viewer in C#: open, display, view, annotate, redact Adobe PDF files online in ASP.NET MVC & WebForm...
asp.net mvc text file viewer: ASP.NET Text file viewer in MVC, WebForms: Open, view, annotate, convert txt files in C# ASP.NET
asp.net edit pdf text: ASP.NET PDF Text Edit Control: online edit PDF text content using C# ASP.NET
asp.net mvc pdf editor: ASP.NET MVC PDF Viewer & Editor: view, annotate, redact, edit PDF document in C# ASP.NET MVC
UPC-A, a specific type of the Universal Product Code (UPC), is a linear bar code symbology widely used in the United States and other countries. This bar code is mainly used for tracking items / goods for stores. This barcode can encode 12 numeric digits only, including the last checksum digit. However, if you want to encode some more information, you can add a supplement symbol with 2 or 5 digits. RasterEdge barcode reader library supports reading UPC-A, UPC-A+2, as well as UPC-A+5 in VB.NET application.
In this page, we will show you how to easily decode a UPC-A barcode from images, PDF and MS Word document with the Visual Basic .NET sample codes provided. Please build your VB.NET imaging application first, so we can get started with the following UPC-A reading sections:
  • Visual Basic .NET UPC-A barcode reader feature list
  • How to read UPC-A linear barcodes from images like png, jpeg, gif, tiff and bmp using VB.NET
  • How to decode UPC-A barcode images from a PDF document with VB.NET programming language
  • How to scan & decipher a UPC-A barcode from your local MS Word document with VB.NET
VB.NET UPC-A Barcode Reader Feature List
  • Support .NET Framework 2.0 and later versions
  • Compatible with .NET, VB.NET development environment such as MS Visual Studio
  • Easy to be integrated into many Visual Basic .NET applications
  • Complete demo codes and tutorial are provided for scanning UPC-A from PDF and MS Word
  • Decoding, scanning UPC-A linear bar codes from Png, Jpeg, Gif, Tiff and Bmp
  • Mature barcode reading library with accurate reading capacity and high scanning speed
  • Also support other linear and 2d bar code types besides UPC-A
RasterEdge barcode reader plug-in component for VB.NET supports reading a variety of barcode types. Here are some more tutorials which might be useful for you:
Reading UPC-A from Images in VB.NET
Demonstrated in the code tab below are the complete Visual Basic .NET sample codes for scanning and decoding a UPC-A bar code symbol from your local picture in tiff image format. This barcode scanning library also supports reading UPC-A barcode symbol from a gif, jpeg, bmp or png image in your VB.NET imaging program. Please create a VB.NET application in your Visual Studio 2005 (or later versions), copy the demo codes below to your project and then run it. You can find the UPC-A barcode data easily decoded and output to your program.
Please note that for the trial package, the first data decoded from the barcode is a random output. This is the only difference between the licensed barcode reader product and the evaluation package. When you are using the licensed DLL, the whole barcode data can be decoded and displayed correctly for you.
Public Shared FolderName As String = "c:/"

Private Sub button1_Click(sender As Object, e As EventArgs)
Dim fileName As String = FolderName & "SampleBarcode.tif"

Dim datas As String() = BarcodeScanner.Scan(fileName, BarcodeType.UPCA)

For Each data As String In datas
Debug.WriteLine(data)
Next
End Sub
Decoding UPC-A from PDF with VB.NET
In the code tab below we have provided users with the complete Visual Basic .NET sample codes for reading & detecting UPC-A barcodes from a PDF document. This library is mature enough to go through the entire PDF document to find all the UPC-A bar code inside to decode, so if there are only a few barcodes, you can directly specify accurate page for the barcode reader, which can help you reduce the scanning time to improve efficiency.
Public Shared FolderName As String = "c:/"

Private Sub button1_Click(sender As Object, e As EventArgs)
Dim fileName As String = FolderName & "Sample.pdf"

Dim reImage As REImage = DirectCast(REFile.OpenDocumentFile(fileName, New PDFDecoder()).GetPage(0).ToImage(), REImage)

Dim datas As String() = BarcodeScanner.Scan(reImage, BarcodeType.UPCA)

For Each data As String In datas
Debug.WriteLine(data)
Next
End Sub
Scanning UPC-A from PDF Using VB.NET
Copy the following sample codes to your Visual Basic .NET image processing program, so you can easily detect and read UPC-A barcodes from your local Microsoft Word document. Similar to PDF barcode decoding, RasterEdge will firstly convert the MS Word pages into image format and then read UPC-A barcodes from them. You can define certain page or area to reduce scanning district in order to improve reading efficiency.
Public Shared FolderName As String = "c:/"

Private Sub button1_Click(sender As Object, e As EventArgs)
Dim fileName As String = FolderName & "Sample.docx"

Dim reImage As REImage = DirectCast(REFile.OpenDocumentFile(fileName, New DOCXDecoder()).GetPage(0).ToImage(), REImage)

Dim datas As String() = BarcodeScanner.Scan(reImage, BarcodeType.UPCA)

For Each data As String In datas
Debug.WriteLine(data)
Next
End Sub


Recommend this to Google+


RasterEdge.com is professional provider of ASP.NET MVC Document Viewer, ASP.NET PDF Viewer, MVC PDF Viewer document, content and imaging solutions, available for ASP.NET AJAX, Silverlight, Windows Forms as well as WPF. We are dedicated to provide powerful & profession imaging controls, PDF document, image to pdf files and components for capturing, viewing, processing, converting, compressing and stroing images, documents and more.

©2000-2017 Raster Edge.com