The sample source codes on this page shows how to read invoice data in VBScript and VB6. ByteScout Invoice Parser SDK: the SDK for automatic invoice parsing and data extraction. Thousands of companies are supported out of the box! Detects and extracts a company name, invoice number, date, total amount to be paid and other fields. Constantly updated database of supported invoices. Batch processing is supported. Outputs JSON, CSV, XML data and can be integrated with other apps and tools. It can read invoice data in VBScript and VB6.
You will save a lot of time on writing and testing code as you may just take the VBScript and VB6 code from ByteScout Invoice Parser SDK for read invoice data below and use it in your application. This VBScript and VB6 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! Code testing will allow the function to be tested and work properly with your data.
You can download free trial version of ByteScout Invoice Parser SDK from our website to see and try many others source code samples for VBScript and VB6.
' This example demonstrates invoice data parsing to JSON and YAML formats. inputDocument1 = "..\..\DigitalOcean.pdf" inputDocument2 = "..\..\AmazonAWS.pdf" ' Create InvoiceParser object Set invoiceParser = CreateObject("Bytescout.InvoiceParser.InvoiceParser") invoiceParser.RegistrationName = "demo" invoiceParser.RegistrationKey = "demo" ' Parse invoice data in JSON format invoiceParser.ParseDocument inputDocument1, "output1.json", 0 ' 0 = OutputFormat.JSON ' Parse invoice data in YAML format invoiceParser.ParseDocument inputDocument2, "output2.yaml", 1 ' 1 = OutputFormat.YAML WScript.Echo "Parsed data saved as 'output1.json' and 'output2.yaml'." Set invoiceParser = Nothing