ByteScout Barcode Reader SDK - C# - Decode GS1 DataBar Expanded - ByteScout

ByteScout Barcode Reader SDK – C# – Decode GS1 DataBar Expanded

  • Home
  • /
  • Articles
  • /
  • ByteScout Barcode Reader SDK – C# – Decode GS1 DataBar Expanded

How to decode gs1 databar expanded in C# and ByteScout BarCode Reader SDK

The tutorial shows how to decode gs1 databar expanded in C#

These source code samples are listed and grouped by their programming language and functions they use. 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 and you can use it to decode gs1 databar expanded with C#.

You will save a lot of time on writing and testing code as you may just take the C# code from ByteScout BarCode Reader SDK for decode gs1 databar expanded below and use it in your application. Just copy and paste the code into your C# application’s code and follow the instruction. Detailed tutorials and documentation are available along with installed ByteScout BarCode Reader SDK if you’d like to dive deeper into the topic and the details of the API.

ByteScout BarCode Reader SDK free trial version is available on our website. C# and other programming languages are supported.

Try ByteScout BarCode Reader SDK today: Get 60 Day Free Trial or sign up for Web API

Program.cs
      
using System; using System.IO; using Bytescout.BarCodeReader; namespace ReadGS1DataBarExpanded { class Program { const string ImageFile = "GS1DataBarExpanded.png"; 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 type to find reader.BarcodeTypesToFind.GS1DataBarExpanded = true; /* ----------------------------------------------------------------------- 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 FoundBarcode[] barcodes = reader.ReadFrom(ImageFile); foreach (FoundBarcode barcode in barcodes) { Console.WriteLine("Found barcode with type '{0}' and value '{1}'", barcode.Type, barcode.Value); } // Cleanup reader.Dispose(); Console.WriteLine("Press any key to exit.."); Console.ReadKey(); } } }

Try ByteScout BarCode Reader SDK today: 60 Day Free Trial (on-premise version) or sign up for Web API (on demand version)

VIDEO

ON-PREMISE VERSION

Get 60 Day Free Trial or Visit ByteScout BarCode Reader SDK page

Explore ByteScout BarCode Reader SDK documentation

WEB API

Sign Up for free Web API key

Explore Web API Documentation

Tutorials:

prev
next