Engine.Init Method |
Namespace: Kofax.OmniPageCSDK.IproPlus
public void Init( [OptionalAttribute] string CompanyName, [OptionalAttribute] string ProductName, [OptionalAttribute] string OEMLicenseFileName, [OptionalAttribute] string OEMLicenseKey )
All properties and methods on this object return with an error unless initialization was done. All parameters are optional. The CompanyName and ProductName parameters are string parameters and control the location the SDK uses to create temporary files. Temporary files are created in subdirectories within the application directory of the OS. Subdirectories are specified by these parameters. For example, a full temporary directory on a typical Windows XP system is: <system drive="">:\\Documents and Settings\\<username> \\Application data\\<company name="">\\<product name="">. If the CompanyName or ProductName parameters are not specified, the default values used are "Kofax" and "OmniPageCSDK21". If the folder specified by CompanyName or ProductName does not exist, a trappable error occurs. If the Engine is already initialized and this method is called again, the method returns without taking any action, even if the CompanyName or ProductName parameters were changed since the last call; i.e.: this method performs a one-time initialization.
In case of OEM licensing, there are three methods to complete the licensing process depending on the whether the NLS (Kofax Licensing Service) is used in service mode, side-by-side mode or internal mode.
1. ENGine initialization with OEM license file - NLS in service mode:
mEngine.Init("Company", "Product", "", OEM_CODE);
Please keep in mind that the mEngine.LoadLicenseFile(); method is obsolete. It should not be used at all.
2. ENGine initialization with OEM license file - NLS in side-by-side mode:
mEngine.Init("Company", "Product", LICENSE_FILE, OEM_CODE);
Please keep in mind that the mEngine.LoadLicenseFile(); method is obsolete. It should not be used at all.
Notes:
3. ENGine initialization with OEM license file - Internal mode:
mEngine.Init("Company", "Product", LICENSE_FILE, OEM_CODE "C");
Please keep in mind that the mEngine.LoadLicenseFile(); method is obsolete. It should not be used at all.
Notes:
Advantages and disadvantages of service mode and side-by-side mode processes:
Service mode
advantages:
disadvantages:
Side-by-side mode
advantages:
disadvantages: