Leadtools.Document Deprecated as of v16. Refer to: Leadtools.Forms.Ocr | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
OmrOptions Property
See Also  Example
Leadtools.Document Namespace > RasterDocumentEngine Class : OmrOptions Property



The OMR options.

Syntax

Visual Basic (Declaration) 
Public Property OmrOptions As RasterDocumentOmrOptions
Visual Basic (Usage)Copy Code
Dim instance As RasterDocumentEngine
Dim value As RasterDocumentOmrOptions
 
instance.OmrOptions = value
 
value = instance.OmrOptions
C# 
public RasterDocumentOmrOptions OmrOptions {get; set;}
C++/CLI 
public:
property RasterDocumentOmrOptions OmrOptions {
   RasterDocumentOmrOptions get();
   void set (RasterDocumentOmrOptions value);
}

Return Value

The OMR options.

Example

Visual BasicCopy Code
Public Sub OmrOptionsPropertyExample()
   ' Note that this is a sample key, which will not work in your toolkit
   RasterSupport.Unlock(Leadtools.RasterSupportType.Ocr, "TestKey")

   Dim rasterDocument As RasterDocumentEngine
   rasterDocument = RasterDocumentEngine.Instance
   rasterDocument.Startup()

   Dim omr As RasterDocumentOmrOptions = New Leadtools.Document.RasterDocumentOmrOptions()
   omr = rasterDocument.OmrOptions
   If omr.EnableFill = False Then
      omr.EnableFill = True
   End If

   If omr.Frame <> RasterDocumentOmrFrame.Yes Then
      omr.Frame = RasterDocumentOmrFrame.Yes
   End If

   If omr.Sense <> RasterDocumentOmrSense.Normal Then
      omr.Sense = RasterDocumentOmrSense.Normal
   End If

   rasterDocument.OmrOptions = omr
   rasterDocument.Shutdown()
End Sub
C#Copy Code
public void OmrOptionsPropertyExample() 

   // Note that this is a sample key, which will not work in your toolkit 
   RasterSupport.Unlock(Leadtools.RasterSupportType.Ocr, "TestKey"); 
 
   RasterDocumentEngine rasterDocument; 
   rasterDocument = RasterDocumentEngine.Instance; 
   rasterDocument.Startup(); 
 
   RasterDocumentOmrOptions omr = new RasterDocumentOmrOptions(); 
   omr = rasterDocument.OmrOptions; 
   if (omr.EnableFill == false) 
      omr.EnableFill = true; 
 
   if (omr.Frame != RasterDocumentOmrFrame.Yes) 
      omr.Frame = RasterDocumentOmrFrame.Yes; 
 
   if (omr.Sense != RasterDocumentOmrSense.Normal) 
      omr.Sense = RasterDocumentOmrSense.Normal; 
 
   rasterDocument.OmrOptions = omr; 
   rasterDocument.Shutdown(); 
}

Remarks

This property is used only when the recognition module is RasterDocumentRecognizeModule.Omr.
For more information, refer to Recognizing Document Pages.

Requirements

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

See Also

The Leadtools.Document namespace is deprecated and no longer supported as of LEADTOOLS v16. For v16 and later, please refer to: Leadtools.Forms.Ocr. This documentation is retained for v15 and earlier informational use only.