←Select platform

Save(string,OcrWriteXmlOptions) Method

Summary

Saves the OCR engine current settings to a disk file.

Syntax
C#
VB
C++
public void Save( 
   string fileName, 
   OcrWriteXmlOptions xmlOptions 
) 
Overloads Sub Save( _ 
   ByVal fileName As String, _ 
   ByVal xmlOptions As OcrWriteXmlOptions _ 
)  
void Save(  
   String^ fileName, 
   OcrWriteXmlOptions^ xmlOptions 
)  

Parameters

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

xmlOptions
XML options to use.

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.

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.SpellCheckEngine and IOcrSpellCheckManager.SpellLanguage.
IOcrDocumentManager (accessed through IOcrEngine.DocumentManager The values of the IOcrDocumentManager.RejectionSymbol and IOcrDocumentManager.MissingSymbol.

Example

For an example, refer to Load

Requirements

Target Platforms

Help Version 20.0.2020.4.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Ocr Assembly