Leadtools.Document Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
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;}
Managed Extensions for C++ 
public: __property RasterDocumentOmrOptions get_OmrOptions();
public: __property void set_OmrOptions( 
   RasterDocumentOmrOptions value
);
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 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Leadtools.Documentrequires a Document or Medical toolkit license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features