Home >
.NET Imaging SDK >
VB.NET >
Read Code 39 on Doc Image
To get started with DocImage SDK for .NET, you are supposed to read VB.NET Imaging: Get Started first!
Code 39 Reader for VB.NET Overview
Code 39 (barcode 3 of 9) reader for VB.NET is in fact one of the barcode decoding functionality of the
RasterEdge barcode reading control library, which is responsible for the decoding a variety of linear and 2d barcode types, including Code 39, Code 128, EAN-13, UPC-A, Data Matrix, QR Code, and PDF-417, etc.
create pdf with images c#,
c# pdf highlight text,
c# convert tiff to pdf,
read pdf file using itextsharp vb.net,
vb.net code to convert excel to pdf,
vb.net pdf password open file,
vb net pdf read image.
Related .net document control helps:
asp.net edit pdf image using c#:
ASP.NET PDF Image Edit Control: online insert, edit PDF images in C#
asp.net edit pdf text using c#:
ASP.NET PDF Text Edit Control: online edit PDF text content using C# ASP.NET
c# asp.net powerpoint viewer: ASP.NET PowerPoint Document Viewer Control (MVC & WebForms): view ppt, pptx files online in C# using ASP.NET
asp.net edit pdf page using c#:
ASP.NET PDF Pages Edit Control: add, remove, sort, replace PDF pages online using C#
asp.net mvc pdf editor using c#: ASP.NET MVC PDF Viewer & Editor: view, annotate, redact, edit PDF document in C# ASP.NET MVC
c# asp.net mvc document viewer: ASP.NET MVC Document Viewer: view, annotate, redact files on ASP.NET MVC web projects
asp.net sharepoint document viewer open source: ASP.NET SharePoint Document Viewer: view, annotate, redact documents in SharePoint
Written in C#.NET codes, this Code 39 barcode reading component can be easily integrated into .NET, VB.NET development environment such as Microsoft Visual Studio.
asp.net mvc display pdf,
open word document in asp.net c#,
asp.net pdf preview,
asp.net pdf viewer control free,
asp.net multipage tiff viewer with thumbnails,
asp.net core open excel file,
how to edit pdf file using itextsharp in asp.net.
It can be seamlessly integrated into VB.NET Windows application, ASP.NET web form / web site, and Visual Basic .NET class library for efficient and fast Code 39 barcode detecting and reading.
In addition, this Code 39 reading library can not only decode independent barcode images in png, jpeg, gif, tiff and bmp image formats, but also detect and recognize the Code 39 images in a PDF, Microsoft Office Word, as well as multi-page TIFF document. Using VB.NET programming language, developers are enabled to scan either the whole document or a specific area as you defined to decipher Code 39 barcode and many other bar code types.
This page mainly tells you how to decode Code 39 in RasterEdge supported images and document files using VB.NET programming. Here are the sections that will be talked about later:
- How to read Code 39 barcode on images using VB.NET
- How to decode Code 39 bar code from PDF file with VB.NET codes
- How to scan Code 39 bar code images from an MS Word doc in VB.NET codings
Besides Code 39 barcode reading in .NET imaging application using VB.NET, RasterEdge also provides you with other barcode reading tutorials. Some of them are listed as below:
How to Read Code 39 on Image in VB.NET
RasterEdge Code 39 barcode decoder for VB.NET allows you to read, scan a single Code 39 barcode or multiple ones from an image, such as JPEG, PNG, GIF, TIFF and BMP. In the Visual Basic sample code below, we will guide you to load an image from your local file, open it, and then scan it with Code 39 barcode reader, and finally output the barcode reading result to your program as string.
You can copy the following demo codes directly to your VB.NET imaging program for a test. Please feel free to make some modification if you prefer, such as the target image file path and name, image type, etc.
This VB.NET example will take you to scan the entire image to get all the Code 39 that can be found, if the barcode images are clear enough to be decoded. However, we have also included a mechanism for you to scan only a part of the image as you define. This feature can be used if a single barcode is presented in a large image for scanning, so you can use this method to improve barcode reading speed further.
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.Code39)
For Each data As String In datas
Debug.WriteLine(data)
Next
End Sub
How to Scan Code 39 from PDF Using VB.NET
Developers can also use this VB.NET Code 39 linear barcode reader to detect the barcode 3 of 9 embedded in a PDF file document. This decoding, however, is different from VB.NET image barcode decoding, in that this Code 39 reading in not done with the PDF file format directly, but rather proceeded after a file conversion.
Check out the Visual Basic (VB.NET) sample codes demonstrated below, and you will find that we will load and open a PDF file from local directory at first, and then convert the PDF file into image format with RasterEdge image decoder, at last barcodes are decoded from the images and then output to your VB program.
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.Code39)
For Each data As String In datas
Debug.WriteLine(data)
Next
End Sub
How to Decode Code 39 in MS Word with VB.NET
If you have a Microsoft Word document and you want to decode the Code 39 barcodes inside, just download our .NET Image SDK to get the barcode reading library. Then, you may build an image processing application in VB.NET, and copy the VB.NET sample code below to your program!
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.Code39)
For Each data As String In datas
Debug.WriteLine(data)
Next
End Sub
Recommend this to Google+