LEADTOOLS OCR (Leadtools.Forms.Ocr assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
Load(String) Method
See Also 
Leadtools.Forms.Ocr Namespace > IOcrSettingManager Interface > Load Method : Load(String) Method



fileName
The name of the file containing the settings.

The Load(String) Method is available as an add-on to the LEADTOOLS Document and Medical Imaging toolkits.

fileName
The name of the file containing the settings.
Loads the OCR engine settings from a disk file.

Syntax

Visual Basic (Declaration) 
Overloads Sub Load( _
   ByVal fileName As String _
) 
Visual Basic (Usage)Copy Code
Dim instance As IOcrSettingManager
Dim fileName As String
 
instance.Load(fileName)
C# 
void Load( 
   string fileName
)
C++/CLI 
void Load( 
   String^ fileName
) 

Parameters

fileName
The name of the file containing the settings.

Example

This example will change some of the settings of the OCR engine and save then to a file. The it shuts down the engine, restarts it and reloads the last settings used.

Remarks

Once you set up the OCR engine, you can re-use these settings by saving the engine state into memory or to an XML file on disk. You can later reload these settings and use them in the same or different instance of IOcrEngine.

The following table lists all of the states loaded from the XML file. After the load operation completes, some or all of the settings below will be changed.

Part Members
IOcrSettingManager (accessed through IOcrEngine.SettingManager All the settings as obtained through IOcrSettingManager.GetSettingNames
IOcrLanguageManager (accessed through IOcrEngine.LanguageManager The value of IOcrLanguageManager.GetEnabledLanguages
IOcrSpellCheckManager (accessed through IOcrEngine.SpellCheckManager The values of IOcrSpellCheckManager.Enabled, IOcrSpellCheckManager.SpellLanguage and IOcrSpellCheckManager.UserDictionary.
IOcrDocumentManager (accessed through IOcrEngine.DocumentManager The values of the IOcrDocumentManager.RejectionSymbol and IOcrDocumentManager.MissingSymbol.

You can save the settings to a disk file using Save(String), you can load and save the settings into any .NET stream using Load(Stream) and Save(Stream).

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Load(String) requires an OCR module license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features