ByteScout BarCode Generator SDK – VBScript – Caption Font

  • Home
  • /
  • Articles
  • /
  • ByteScout BarCode Generator SDK – VBScript – Caption Font

ByteScout BarCode Generator SDK – VBScript – Caption Font

Caption Font.vbs

' Create Barcode object
Set bc = CreateObject("Bytescout.BarCode.Barcode")

' Set barcode type to Code39
bc.Symbology = 1 ' 1 = Code39 symbology type

' Set barcode value 
bc.Value = "012345" 

' Change caption font
bc.SetCaptionFont "Times New Roman", 24

' Save barcode 
bc.SaveImage "Code39.png"

' Open the output file in default app
Set shell = CreateObject("WScript.Shell")
shell.Run "code39.png", 1, false



  Click here to get your Free Trial version of the SDK

prev
next