ByteScout Barcode Reader SDK - C# - Decode GS1-128 - ByteScout

ByteScout Barcode Reader SDK – C# – Decode GS1-128

  • Home
  • /
  • Articles
  • /
  • ByteScout Barcode Reader SDK – C# – Decode GS1-128

How to Decode GS1 128 in C# with ByteScout Barcode Reader SDK

Tutorial on How to Decode GS1 128 in C#

The coding tutorials are designed to help you test the features without the need to write your own code. 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 128 with C#.

The SDK samples like this one below explain how to quickly make your application do decode gs1 128 in C# with the help of ByteScout BarCode Reader SDK. Follow the instructions from scratch to work and copy the C# code. The use of ByteScout BarCode Reader SDK in C# is also explained in the documentation included along with the product.

Download the free trial version of ByteScout BarCode Reader SDK from our website with this and other source code 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)


using System; using System.IO; using Bytescout.BarCodeReader; namespace ReadGS1_128 { class Program { const string ImageFile = "GS1_128.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.GS1 = true; // "GS1-128" barcode type is subset of "Code 128" /* ----------------------------------------------------------------------- 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(); } } }


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


Get Your API Key

Explore Web API Docs

Explore Web API Samples