The samples of source code documentation give a quick and simple method to apply a required functionality into your application. Barcode reading profiles with barcode reader sdk in VBScript can be applied with ByteScout Data Extraction Suite. ByteScout Data Extraction Suite is the set that includes 3 SDK products for data extraction from PDF, scans, images and from spreadsheets: PDF Extractor SDK, Data Extraction SDK, Barcode Reader SDK.
The below SDK samples describe how to quickly make your application do barcode reading profiles with barcode reader sdk in VBScript with the help of ByteScout Data Extraction Suite. To use barcode reading profiles with barcode reader sdk in your VBScript project or application just copy & paste the code and then run your app! This basic programming language sample code for VBScript will do the whole work for you in implementing barcode reading profiles with barcode reader sdk in your app.
Our website gives free trial version of ByteScout Data Extraction Suite. It includes all these source code samples with the purpose to assist you with your VBScript application implementation.
' This example demonstrates the use of profiles. Profiles are set of properties ' allowing to apply them to Reader in any combination quickly. You can use ' predefined profiles or create you own in JSON format like in this example. ' Create Bytescout.PDFExtractor.TextExtractor object Set reader1 = CreateObject("Bytescout.BarCodeReader.Reader") reader1.RegistrationName = "demo" reader1.RegistrationKey = "demo" ' Apply predefined profiles: ' enable Code39; ' enable EAN-13; ' render PDF at 150 DPI resoultion. reader1.Profiles = "code39, ean13, pdf150dpi" ' Decode and show barcodes from sample1.pdf reader1.ReadFromFile "sample1.pdf" For i = 0 To reader1.FoundCount - 1 WScript.Echo "Found type " & reader1.GetFoundBarcodeType(i) & " barcode with value " & reader1.GetFoundBarcodeValue(i) & """" Next Set reader2 = CreateObject("Bytescout.BarCodeReader.Reader") reader2.RegistrationName = "demo" reader2.RegistrationKey = "demo" ' Load and apply custom profiles reader2.LoadProfiles "profiles.json" reader2.Profiles = "negative-distorted-datamatrix" ' Decode and show barcodes from sample2.png reader2.ReadFromFile "sample2.png" For i = 0 To reader2.FoundCount - 1 WScript.Echo "Found type " & reader2.GetFoundBarcodeType(i) & " barcode with value " & reader2.GetFoundBarcodeValue(i) & """" Next