ByteScout BarCode Generator SDK - C# - GS1 QR Code - ByteScout
Announcement
Our ByteScout SDK products are sunsetting as we focus on expanding new solutions.
Learn More Open modal
Close modal
Announcement Important Update
ByteScout SDK Sunsetting Notice
Our ByteScout SDK products are sunsetting as we focus on our new & improved solutions. Thank you for being part of our journey, and we look forward to supporting you in this next chapter!

ByteScout BarCode Generator SDK – C# – GS1 QR Code

  • Home
  • /
  • Articles
  • /
  • ByteScout BarCode Generator SDK – C# – GS1 QR Code

ByteScout BarCode Generator SDK – C# – GS1 QR Code

Program.cs

using System;
using System.Diagnostics;
using Bytescout.BarCode;

namespace GS1QRCode
{
    class Program
    {
        static void Main(string[] args)
        {
            try
            {
                // Create and activate barcode generator instance
                using (Barcode barcode = new Barcode("demo", "demo"))
                {
                    // Set barcode type
                    barcode.Symbology = SymbologyType.GS1_QRCode;

                    // GS1 QR Code requires a value that is formatted according to GS1 specification.
                    barcode.Value = @"(01)07046261398572(17)130331(10)TEST5632(21)19067811811";

                    // Save barcode to image file
                    barcode.SaveImage("result.png");
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }

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

  Click here to get your Free Trial version of the SDK

Tutorials:

prev
next