On this page you will learn from code samples for programming in VBScript.Writing of the code to add barcodes to new pdf with barcode sdk in VBScript can be executed by programmers of any level using ByteScout Premium Suite. ByteScout Premium Suite is the set that includes 12 SDK products from ByteScout including tools and components for PDF, barcodes, spreadsheets, screen video recording. It can be applied to add barcodes to new pdf with barcode sdk using VBScript.
The following code snippet for ByteScout Premium Suite works best when you need to quickly add barcodes to new pdf with barcode sdk in your VBScript application. Just copy and paste the code into your VBScript application’s code and follow the instructions. Enjoy writing a code with ready-to-use sample codes in VBScript.
The trial version of ByteScout Premium Suite can be downloaded for free from our website. It also includes source code samples for VBScript and other programming languages.
' Create barcode object and register it Set barcode = CreateObject("Bytescout.BarCode.Barcode") barcode.RegistrationName = "demo" barcode.RegistrationKey = "demo" ' set symbology to DataMatrix barcode.Symbology = 15 ' 15 = DataMatrix symbology type ' set barcode value to encode barcode.Value = "Sample barcode" ' Place barcode at top-right corner of every document page barcode.DrawToNewPDF "barcode.pdf", 595,842, 500, 50 ' Open the output file in default PDF viewer. Set shell = CreateObject("WScript.Shell") shell.Run "barcode.pdf", 1, false Set shell = Nothing Set barcode = Nothing