An easy to understand guide on how to change fore and back color with barcode sdk in VBScript with this source code sample. What is ByteScout Premium Suite? It is the set that includes 12 SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording. It can help you to change fore and back color with barcode sdk in your VBScript application.
The SDK samples given below describe how to quickly make your application do change fore and back color with barcode sdk in VBScript with the help of ByteScout Premium Suite. Simply copy and paste in your VBScript project or application you and then run your app! Complete and detailed tutorials and documentation are available along with installed ByteScout Premium Suite if you’d like to learn more about the topic and the details of the API.
All these programming tutorials along with source code samples and ByteScout free trial version are available for download from our website.
Set bc = CreateObject("Bytescout.BarCode.Barcode") ' set symbology to Code39 bc.Symbology = 1 ' 1 = Code39 symbology type ' set barcode value to encode bc.Value = "012345" bc.SetForeColorRGB 255,255,0 bc.SetBackColorRGB 0,0,0 bc.SaveImage "CustomColor.png" Set bc = Nothing ' Open the output file in default app Set shell = CreateObject("WScript.Shell") shell.Run "CustomColor.png", 1, false Set shell = Nothing