ByteScout BarCode Generator SDK - C# - Unicode - 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# – Unicode

  • Home
  • /
  • Articles
  • /
  • ByteScout BarCode Generator SDK – C# – Unicode

ByteScout BarCode Generator SDK – C# – Unicode

Program.cs

using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
using System.Drawing;
using Bytescout.BarCode;

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

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

            // set QR code encoding to UTF8 so will be able to encode Unicode 
            barcode.Options.Encoding = Encoding.UTF8;

            // Set Unicode barcode value string ??
            barcode.Value = "??";

            // show caption for 2d barcodes
            barcode.DrawCaptionFor2DBarcodes = true;

            // set caption font to Arial Unicode MS so it will display the caption
            barcode.CaptionFont = new Font("Arial Unicode MS", 8);

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

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


  Click here to get your Free Trial version of the SDK

Tutorials:

prev
next