Nicomsoft OCR: Developer's Guide


Cfg_LoadOptionsFromString


Syntax

C++:int Cfg_LoadOptionsFromString(HCFG CfgObj, UNICODECHAR* XMLString)
C#:int Cfg_LoadOptionsFromString(int CfgObj, string XMLString)
Visual Basic:Function Cfg_LoadOptionsFromString(ByVal CfgObj As Integer, ByVal XMLString As String) As Integer
Java:int Cfg_LoadOptionsFromString(HCFG CfgObj, String XMLString)
Delphi:function Cfg_LoadOptionsFromString(CfgObj:HCFG; XMLString:PWCHAR):integer


Description

Loads OCR options from a string. Before using any OCR-related functions, you need to create the Config object by calling the Cfg_Create function, and then load the options that will be used during OCR.


Parameters

CfgObj [IN] – the Config object.
XMLString [IN] – a Unicode, null-terminated string that contains the OCR configuration data in the XML format.


Return value

Zero if success, otherwise an error code.


Remarks

For more information about the configuration file format, see the OCR Configuration section.


Example

None.