Leadtools.Forms.Ocr Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
Save(String) Method
See Also 
Leadtools.Forms.Ocr Namespace > IOcrSettingManager Interface > Save Method : Save(String) Method



fileName
The name of the file containing the settings to read.
fileName
The name of the file containing the settings to read.
Saves the OCR engine current settings to a disk file.

Syntax

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

Parameters

fileName
The name of the file containing the settings to read.

Example

For an example, refer to Load

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. Later, reload these settings and use them in the same or different instance of IOcrEngine.

The following table lists all the states loaded from the XML file. After the load operation completes, some or all of the settings below will be changed.
PartMembers
IOcrSettingManager (accessed through IOcrEngine.SettingManagerAll the settings as obtained through IOcrSettingManager.GetSettingNames
IOcrLanguageManager (accessed through IOcrEngine.LanguageManagerThe value of IOcrLanguageManager.GetEnabledLanguages
IOcrSpellCheckManager (accessed through IOcrEngine.SpellCheckManagerThe values of IOcrSpellCheckManager.Enabled, IOcrSpellCheckManager.SpellLanguage and IOcrSpellCheckManager.UserDictionary.
IOcrDocumentManager (accessed through IOcrEngine.DocumentManagerThe values of the IOcrDocumentManager.RejectionSymbol and IOcrDocumentManager.MissingSymbol.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

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