Leadtools.Forms.Ocr Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
DocumentWriterInstance Property
See Also 
Leadtools.Forms.Ocr Namespace > IOcrEngine Interface : DocumentWriterInstance Property



Gets the instance of the DocumentWriter object being used inside this IOcrEngine.

Syntax

Visual Basic (Declaration) 
Overridable ReadOnly Property DocumentWriterInstance As DocumentWriter
Visual Basic (Usage)Copy Code
Dim instance As IOcrEngine
Dim value As DocumentWriter
 
value = instance.DocumentWriterInstance
C# 
virtual DocumentWriter DocumentWriterInstance {get;}
C++/CLI 
virtual property DocumentWriter DocumentWriterInstance {
   DocumentWriter get();
}

Return Value

The DocumentWriter object being used inside this IOcrEngine.

Example

For an example, refer to Startup.

Remarks

You can pass an instance of an already initialized DocumentWriter object to the Startup method. This DocumentWriter objects will then be used internal by the engine when saving OCR documents to disk or memory. Otherwise, when passing null (Nothing in Visual Basic), the IOcrEngine will create and use its own version of DocumentWriter during the startup procedure.

The internal DocumentWriter object will be disposed of by the engine automatically when Shutdown or Dispose is called. If you passed your own instance of DocumentWriter, then the engine will not dispose it and you can continue to use it as normal after the engine instance has been disposed. When passing your own instance of DocumentWriter, make sure this instance stays valid as long as the engine is started.

Requirements

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

See Also

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