Reputation: 109
I've seen this Has anyone used Kofax Capture API for creating a Importer to create a batch in Kofax, but it didn't work out for me.
I'm trying to automate creating a batch and maybe validating a batch from vba(ideally vb.net after).
Is there any sample code to assist me in the right direction? Almost everything I searched lead me to a contractor for hire or licensed software. I tried figuring it out myself through trial and error but I couldn't even connect to a Kofax session.
Dim oFax As ACDB.RuntimeSession
Dim oBatch As ACDB.Batch
Dim pax As ACDB.Process
Dim lFax As ACDB.Login
Set lFax = New ACDB.Login
Set oBatch = oFax.BatchCreate("Test", "Test", 0)
MsgBox (oBatch.Name)
Upvotes: 0
Views: 2721
Reputation: 1388
Sample code that shows how to create batches is installed with Kofax Capture. You should find it in CaptureSV\Source\Sample Projects\InpScrpt\Simple.
If you decide not to write your own:
Validation script is a whole different area. In Kofax Capture Administration, right-click on your document class and choose Document Validation Script which will allow you to create a validation script in VB.NET or SBL (deprecated).
Upvotes: 1