GS1-128 Barcode | C#ByteScout Barcode SDK

GS1-128 Barcode | C#

Program.cs:

C#
using Bytescout.BarCode;
using System.Diagnostics;

namespace Sample
{
    class Program
    {
        static void Main(string[] args)
        {
            // Create new barcode
            Barcode barcode = new Barcode();

            // Set symbology
            barcode.Symbology = SymbologyType.GS1_128;

            // Set value            
            barcode.Value = "(420)145322(92)00191234567812345671";

            // Save barcode to image
            barcode.SaveImage("result.png");

            // Show image in default image viewer
            Process.Start("result.png");
        }
    }
}