VisualBasicScript
Barcodes in projects

ActiveBarcode in VisualBasicScript (Windows Script Host)

1

You can use ActiveBarcode with VisualBasic-Script (VBS, Windows Script 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 barcode
Set barcode = WScript.CreateObject("BARCODE.BarcodeCtrl.1")
Now you can use the variable 'barcode' to access the control. Use the Properties of the control to create the barcode you want:
barcode.Typename = "Code128"
barcode.Text = "123456789012"
Then use the 'SaveAsBySize' method to save the barcode in a specific size to an image file:
barcode.SaveAsBySize "beispielbarcode.png",400,200
Click here to download the above example as wsf file.
2


A very detailed example for a VisualBasicScript application is the console application BarcodeImage. You can use this source code to learn how to use the ActiveBarcode Control in a VBS script or you can use it as a basis for your own script.


| Home | Shop | Download | E-Mail | Privacy Policy | Imprint | Version 6.6.0
Copyright ©
Frank HornActiveBarcode Generator
Web design: szBubble 3.2.2.668
Copyright © Frank Horn
&
Lars SchenkActiveBarcode Object
Web- & server component
Command line
Copyright © Lars Schenk

All trademarks and product names mentioned are the property of their respective owners.



We use cookies to provide you with the best experience and functionality on our website. By using our site you agree to this. read more >