Connect (ByRef ehApp As Object, ByRef strInifile As String, ByRef strIniSection As String) As Long

Description

When a ReadSoft Invoices module starts, it loads all plug-ins listed in Eilocal.ini. ReadSoft Invoices requires that the plug-in has a method called Connect that has this signature. This is the one and only time your plug-in gets access to ReadSoft Invoices' Application object.

Every plug-in must contain this method with exactly this signature. You always receive the COM application object, which consists of one of these objects: ManagerApp, ScanApp, InterpretApp, VerifyApp, TransferApp.

Windows Vista, Windows 7, and Windows Server 2008 R2

When running on the newer operating systems, an existing implementation of the IsVistaConverted method in the plug-in's main class object is required. In this case, the formal parameters strInifile and strIniSection do not contain any actual values in the Connect method's call. Instead, use the Configuration property of the Application object for configuration data management.

See also: Migrate Kofax ReadSoft Invoices customizations to recent operating systems

Return value

EV_OK - Connection accepted

EV_ERROR - Connection canceled