Barcodes in projects
ActiveBarcode in VisualBasicScript (Windows Scritping Host)
You can use ActiveBarcode with VisualBasic-Script (VBS, Windows Scripting Host) to create barcodes
in scripts automatically. Here we show you how simple is it to use ActiveBarcode in VBS.
First make the ActiveBarcode control available in your script:
Dim barcodeNow you can use the variable 'barcode' to access the control. Use the Properties of the control to create the barcode you want:
Set barcode = WScript.CreateObject("BARCODE.BarcodeCtrl.1")
barcode.Typename = "Code128"Then use the 'SaveAsBySize' method to save the barcode in a specific size to an image file:
barcode.Text = "123456789012"
Click here to download the above example as wsf file.
To learn more about this, please have a look at the VisualBasic-Script application 'barcodeimage.wsf' that is included in the ActiveBarcode package. You can use this source code for learning purposes or use it as a start for your own scripts.