Skip to main content
Kofax

What API can be used to get Kofax license information and serial number by script?

Article # 3032305 - Page views: 57

UndefinedNameError: reference to undefined name 'undefined' (click for details)
Callstack:
    at (Capture/Kofax_Capture/How_To/What_API_can_be_used_to_get_Kofax_license_information_and_serial_number_by_script), /content/body/div/pre, line 2, column 1
 
 

Issue

What API can be used to get Kofax license information and serial number by script?

 

Solution

You need to add a reference to the file KSALicClnt.dll in Kofax Capture Bin folder in your project.

 

Afterwards you can use the following VB.NET code to get several information:

 

Dim cc As New Kofax.SAL.Client.SALicClientConnection
addinfo("Server Date", cc.GetServerDate().ToString)
addinfo("Kofax Serial Number", cc.GetDisplayProductSerialNumber())
addinfo("Server ", cc.Server.Name + ":" + cc.Server.PortNumber.ToString)
Dim machineIDs() = cc.GetMachineIDs()
For Each id As String In machineIDs
addinfo("Machine ID", id)
Next

 

Level of Complexity 

Moderate

 

Applies to  

Product Version Build Environment Hardware
Capture 11.x      

References

Add any references to other internal or external articles

  • Was this article helpful?