ByteScout QR Code SDK - VBScript and VB6 - General Example - ByteScout

ByteScout QR Code SDK – VBScript and VB6 – General Example

  • Home
  • /
  • Articles
  • /
  • ByteScout QR Code SDK – VBScript and VB6 – General Example

ByteScout QR Code SDK – VBScript and VB6 – General Example

GeneralExample.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"

' Uncomment if you don't need margins
'barcode.SetMargins 0, 0, 0, 0
'barcode.DrawQuietZones = False

' 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