ByteScout Data Extraction Suite - C# - Interrupt barcode decoding processing with barcode reader sdk - ByteScout

ByteScout Data Extraction Suite – C# – Interrupt barcode decoding processing with barcode reader sdk

  • Home
  • /
  • Articles
  • /
  • ByteScout Data Extraction Suite – C# – Interrupt barcode decoding processing with barcode reader sdk

interrupt barcode decoding processing with barcode reader sdk in C# using ByteScout Data Extraction Suite

Learn interrupt barcode decoding processing with barcode reader sdk in C#

This page explains the steps and algorithm of implementing interrupt barcode decoding processing with barcode reader sdk and how to make it work in your application. Interrupt barcode decoding processing with barcode reader sdk in C# can be applied with ByteScout Data Extraction Suite. ByteScout Data Extraction Suite is the bundle that includes three SDK tools for data extraction from PDF, scans, images and from spreadsheets: PDF Extractor SDK, Data Extraction SDK, Barcode Reader SDK.

Save time on writing and testing code by using the code below and use it in your application. If you want to know how it works, then this C# sample code should be copied and pasted into your application’s code editor. Then just compile and run it. Want to see how it works with your data then code testing will allow the function to be tested and work properly.

ByteScout Data Extraction Suite free trial version is available for download from our website. Free trial also includes programming tutorials along with 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)

Program.cs
      
using System; using System.IO; using Bytescout.BarCodeReader; namespace InterruptProcessing { class Program { const string ImageFile = "1d_barcodes.pdf"; static void Main() { Console.WriteLine("Reading barcode(s) from image {0}", Path.GetFullPath(ImageFile)); Reader reader = new Reader(); reader.RegistrationName = "demo"; reader.RegistrationKey = "demo"; // Set barcode types to find reader.BarcodeTypesToFind.All1D = true; reader.BarcodeFound += Reader_BarcodeFound; /* ----------------------------------------------------------------------- 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 reader.ReadFrom(ImageFile); // Cleanup reader.Dispose(); Console.WriteLine("Press any key to exit.."); Console.ReadKey(); } private static void Reader_BarcodeFound(object sender, BarcodeFoundEventArgs e) { Console.WriteLine("Found barcode with type '{0}' and value '{1}'", e.Barcode.Type, e.Barcode.Value); if (e.Count == 5) { // Cancel after 5 barcodes found e.Cancel = true; Console.WriteLine("Cancelled."); } } } }

ON-PREMISE OFFLINE SDK

60 Day Free Trial or Visit ByteScout Data Extraction Suite Home Page

Explore ByteScout Data Extraction Suite Documentation

Explore Samples

Sign Up for ByteScout Data Extraction 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 Data Extraction Suite Home Page

Explore ByteScout Data Extraction Suite Documentation

Explore Samples

Sign Up for ByteScout Data Extraction Suite Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next