ByteScout QR Code SDK - VBScript and VB6 - Unicode Value - 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 QR Code SDK – VBScript and VB6 – Unicode Value

  • Home
  • /
  • Articles
  • /
  • ByteScout QR Code SDK – VBScript and VB6 – Unicode Value

ByteScout QR Code SDK – VBScript and VB6 – Unicode Value

UnicodeValue.vbs

' Create and activate QRCode instance
Set barcode = CreateObject("Bytescout.BarCode.QRCode")
barcode.RegistrationName = "demo"
barcode.RegistrationKey = "demo"

' Set barcode value
barcode.Value = "ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz 1234567890"

' Set the character encoding to UTF-16
barcode.SetCharacterEncoding "utf-16"

' Set Unicode barcode value
barcode.Value = "??"

' Show barcode caption (optional)
barcode.DrawCaption = True

' Save barcode image to file
barcode.SaveImage("result.png")

' Open the image in default image viewer (for demo purpose)
Set shell = CreateObject("WScript.Shell")
shell.Run "result.png", 1, false
Set shell = Nothing

Set barcode = Nothing


  Click here to get your Free Trial version of the SDK

Tutorials:

prev
next