Decode GS1-128 - C#
BarCode Reader SDK sample in C# demonstrating ‘Decode GS1-128’
Program.cs
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();
        }
    }
}