ByteScout Barcode Reader SDK - C# - Interrupt Barcode Decoding Processing - ByteScout

ByteScout Barcode Reader SDK – C# – Interrupt Barcode Decoding Processing

  • Home
  • /
  • Articles
  • /
  • ByteScout Barcode Reader SDK – C# – Interrupt Barcode Decoding Processing

interrupt barcode decoding processing in C# with ByteScout BarCode Reader SDK

interrupt barcode decoding processing in C#

Writing of the code to interrupt barcode decoding processing in C# can be done by developers of any level using ByteScout BarCode Reader SDK. ByteScout BarCode Reader SDK was made to help with interrupt barcode decoding processing in C#. ByteScout BarCode Reader SDK is the barcode decoder with support for code 39, code 128, QR Code, Datamatrix, GS1, PDF417 and all other popular barcodes. Can read barcodes from images, pdf, tiff documents and live web camera. Supports noisy and damaged documents, can split and merge pdf and tiff documents based on barcodes. Can export barcode decoder results to XML, JSON, CSV and into custom data structures.

You will save a lot of time on writing and testing code as you may just take the code below and use it in your application. In order to implement this functionality, you should copy and paste code below into your app using code editor. Then compile and run your application. You can use these C# sample examples in one or many applications.

Free trial version of ByteScout BarCode Reader SDK is available on our website. Get it to try other samples for C#.

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 BarCode Reader SDK Home Page

Explore ByteScout BarCode Reader SDK Documentation

Explore Samples

Sign Up for ByteScout BarCode Reader SDK 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 BarCode Reader SDK Home Page

Explore ByteScout BarCode Reader SDK Documentation

Explore Samples

Sign Up for ByteScout BarCode Reader SDK Online Training

ON-DEMAND REST WEB API

Get Your API Key

Explore Web API Docs

Explore Web API Samples

Tutorials:

prev
next