ByteScout tutorials are designed to explain the code for both VB.NET beginners and advanced programmers. Want to set unicode text in barcode in your VB.NET app? ByteScout Barcode SDK is designed for it. ByteScout Barcode SDK is the robost SDK that generates high quality barcode images and pdf. Can generate all popular types of barcodes from QR Code, Code 39, Code 128, UPC, GS1, GS-128, PDF417, Datamatrix to more exotic barcode types. Fully customizable fonts, colors, print sizes. Includes special functions to ensure output quality, and tools for adding barcodes to new or existing pdf files and images.
Fast application programming interfaces of ByteScout Barcode SDK for VB.NET plus the instruction and the code below will help you quickly learn how to set unicode text in barcode. In order to implement the functionality, you should copy and paste this code for VB.NET below into your code editor with your app, compile and run your application. Enjoy writing a code with ready-to-use sample VB.NET codes.
Free trial version of ByteScout Barcode SDK is available on our website. Documentation and source code samples are included.
Imports Bytescout.BarCode Imports System.Drawing Module Module1 Sub Main() ' Create new barcode Dim barcode As New Barcode() ' Set symbology barcode.Symbology = SymbologyType.QRCode ' set QR code encoding to UTF8 so will be able to encode Unicode barcode.Options.Encoding = System.Text.Encoding.UTF8() ' Set Unicode barcode value 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") End Sub End Module