Leadtools.Document Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
SpecialMissingSymbol Property
See Also  Example
Leadtools.Document Namespace > RasterDocumentEngine Class : SpecialMissingSymbol Property




The character used to replace missing characters in the last recognition process or save results process.

Syntax

Visual Basic (Declaration) 
Public Property SpecialMissingSymbol As Char
Visual Basic (Usage)Copy Code
Dim instance As RasterDocumentEngine
Dim value As Char
 
instance.SpecialMissingSymbol = value
 
value = instance.SpecialMissingSymbol
C# 
public char SpecialMissingSymbol {get; set;}
Managed Extensions for C++ 
public: __property char get_SpecialMissingSymbol();
public: __property void set_SpecialMissingSymbol( 
   char value
);
C++/CLI 
public:
property char SpecialMissingSymbol {
   char get();
   void set (char value);
}

Return Value

The character used to replace missing characters in the last recognition process or save results process.

Example

Visual BasicCopy Code
Public Sub SpecialMissingSymbolPropertyExample()
   ' 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()
   'assume page is added, refer to AddPage example for more information

   rasterDocument.RecognitionDataFileName = "C:\Program Files\LEAD Technologies\LEADTOOLS 15\Images\test.rdf"
   rasterDocument.SpellLanguageId = RasterDocumentLanguage.English

   rasterDocument.Recognize(0, 1, Nothing)
   If rasterDocument.SpecialMissingSymbol = "^"c Then
      rasterDocument.SpecialMissingSymbol = "^"c
   End If

   If rasterDocument.SpecialRejectedCharacter = "!"c Then
      rasterDocument.SpecialRejectedCharacter = "!"c
   End If

   ' ...
   ' ... save recognition results using SaveDocument
   ' ...

   rasterDocument.SaveResultsToFile("C:\Program Files\LEAD Technologies\LEADTOOLS 15\Images\ocr1.doc")
   rasterDocument.Shutdown()
End Sub
C#Copy Code
public void SpecialMissingSymbolPropertyExample() 

   // Note that this is a sample key, which will not work in your toolkit 
   RasterSupport.Unlock(RasterSupportType.Ocr, "TestKey"); 
   RasterDocumentEngine rasterDocument; 
   rasterDocument = RasterDocumentEngine.Instance; 
   rasterDocument.Startup(); 
 
   // assume page is added, refer to AddPage example for more information 
 
   rasterDocument.RecognitionDataFileName = @"C:\Program Files\LEAD Technologies\LEADTOOLS 15\Images\test.rdf"; 
   rasterDocument.SpellLanguageId = RasterDocumentLanguage.English; 
 
   rasterDocument.Recognize(0, 1, null); 
   if (rasterDocument.SpecialMissingSymbol == '^') 
      rasterDocument.SpecialMissingSymbol = '^'; 
 
   if (rasterDocument.SpecialRejectedCharacter == '!') 
      rasterDocument.SpecialRejectedCharacter = '!'; 
 
   // ... 
   // ... save recognition results using SaveDocument 
   // ... 
 
   rasterDocument.SaveResultsToFile(@"C:\Program Files\LEAD Technologies\LEADTOOLS 15\Images\ocr1.doc"); 
   rasterDocument.Shutdown(); 
}

Remarks

Sets the special character to be used to replace missing characters in the next recognition process and save results process. To recognize a page(s), call Recognize.
When set, the engine will replace all missing characters with this newly set special character. This helps the user find the missing or rejected characters with minimal effort when the recognition results are saved to a file.

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