The code displayed below will guide you to install an VBScript app to add barcodes to image with barcode sdk. ByteScout Barcode Suite is the set that includes three different SDK products to generate barcodes, read barcodes and read and write spreadsheets: Barcode SDK, Barcode Reader SDK and Spreadsheet SDK. It can be applied to add barcodes to image with barcode sdk using VBScript.
The SDK samples given below describe how to quickly make your application do add barcodes to image with barcode sdk in VBScript with the help of ByteScout Barcode Suite. This VBScript sample code is all you need for your app. Just copy and paste the code, add references (if needs to) and you are all set! Further improvement of the code will make it more robust.
All these programming tutorials along with source code samples and ByteScout free trial version are available for download from our website.
' Create barcode object and register it Set barcode = CreateObject("Bytescout.BarCode.Barcode") barcode.RegistrationName = "demo" barcode.RegistrationKey = "demo" ' set symbology to PDF417 barcode.Symbology = 13 ' 13 = PDF417 symbology type ' set barcode value to encode barcode.Value = "Sample barcode" ' Place barcode at bottom-right corner of the image barcode.DrawToImage "..\wikipedia.png", -1, 400, 900, "result.png" ' Open the output file in default image viewer. Set shell = CreateObject("WScript.Shell") shell.Run "result.png", 1, false Set shell = Nothing Set barcode = Nothing