Four types of event handlers

Integration is accomplished through Kofax ReadSoft Invoices's event mechanism. You can select the appropriate event and define event handlers for them that extract information from the databases, and modify the behavior of the different program modules.

You can develop event handlers in four different ways:

  • By using the internal VBA engine to write VBA code, and then embedding that code within the field profile, invoice profile, job description or within the application. For more info, see:
  • By writing DLLs in any language capable of producing them, such as C or C++, and then listing the DLL file names, and the function to call in an event handler. For more info, see:

  • By using an ActiveX object as Kofax ReadSoft Invoices's event server.

    Whenever an event occurs, ReadSoft Invoices calls a COM object member function which has the same name as the event. If the server does not have a member function with the same name as the event, ReadSoft Invoices checks for VBA code embedded in the field profile, invoice profile, job description or application.

  • By registering an ActiveX server as a ReadSoft Invoices plug-in (extension).

    This is more efficient than using it as an event server. The ActiveX object subscribes to the events it is interested in. When an event occurs, ReadSoft Invoices makes a function call to the ActiveX object. The function has access to ReadSoft Invoices' entire COM-based API.

Regardless of which strategy you choose, integration always involves designing event handlers.

Related topics

Calling conventions

VBA and DLL event handlers: Overview

Customizing Kofax ReadSoft Invoices