ByteScout Premium Suite - VB.NET - Batch read from files with barcode reader sdk - ByteScout

ByteScout Premium Suite – VB.NET – Batch read from files with barcode reader sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout Premium Suite – VB.NET – Batch read from files with barcode reader sdk

How to batch read from files with barcode reader sdk in VB.NET with ByteScout Premium Suite

This code in VB.NET shows how to batch read from files with barcode reader sdk with this how to tutorial

Source code documentation samples give simple and easy method to install a needed feature into your application. ByteScout Premium Suite is the set that includes 12 SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording. It can be applied to batch read from files with barcode reader sdk using VB.NET.

The following code snippet for ByteScout Premium Suite works best when you need to quickly batch read from files with barcode reader sdk in your VB.NET application. Follow the instructions from scratch to work and copy the VB.NET code. Check VB.NET sample code samples to see if they respond to your needs and requirements for the project.

Our website gives trial version of ByteScout Premium Suite for free. It also includes documentation and source code samples.

On-demand (REST Web API) version:
 Web API (on-demand version)

On-premise offline SDK for Windows:
 60 Day Free Trial (on-premise)

Module1.vb
      
Imports System.IO Imports Bytescout.BarCodeReader Module Module1 Sub Main() ' Get all JPG files from the current folder Dim filesToScan As String() = Directory.GetFiles(Directory.GetCurrentDirectory(), "*.jpg") ' Open file to export results Dim resultsCsvFile As StreamWriter = File.CreateText("results.csv") ' Create barcode reader instance Dim reader As New Reader() reader.RegistrationName = "demo" reader.RegistrationKey = "demo" ' Set barcode types for searching reader.BarcodeTypesToFind.EAN13 = True ' Iterate over images and read barcodes For Each file As String In filesToScan Console.WriteLine() Console.WriteLine("Reading barcode(s) from image {0}", file) ' ----------------------------------------------------------------------- ' NOTE: We can read barcodes from specific page to increase performance . ' For sample please refer to "Decoding barcodes from PDF by pages" program. ' ----------------------------------------------------------------------- ' Read barcodes from image Dim barcodes As FoundBarcode() = reader.ReadFrom(file) ' Display results in console For Each barcode As FoundBarcode In barcodes Console.WriteLine("Found barcode with type '{0}' and value '{1}'", barcode.Type, barcode.Value) Next ' Write results to file in CSV format. Note, you can also export to TXT and XML. Dim csv = reader.ExportFoundBarcodesToCSV() resultsCsvFile.Write(csv) Next reader.Dispose() resultsCsvFile.Dispose() Console.WriteLine("Press any key to exit..") Console.ReadKey() End Sub End Module

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Premium Suite Home Page

Explore ByteScout Premium Suite Documentation

Explore Samples

Sign Up for ByteScout Premium Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

VIDEO

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Premium Suite Home Page

Explore ByteScout Premium Suite Documentation

Explore Samples

Sign Up for ByteScout Premium Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next