Link Search Menu Expand Document

Caption Font - VBScript

BarCode SDK sample in VBScript demonstrating ‘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


Download Source Code (.zip)

Return to the previous page Explore BarCode SDK