SpecialRejectedCharacter Example for Visual Basic
Private Sub Command23_Click()
Dim nRet As Integer
RasterDoc.EnableSaveResultsToMemory = False
RasterDoc.RecognitionDataFileName = "c:\test.rdf"
RasterDoc.SpellLanguageID = LANGID_ENGLISH
nRet = RasterDoc.Recognize (0, 1)
If (nRet = 0) Then
If (RasterDoc.SpecialMissingSymbol = "^") Then
RasterDoc.SpecialMissingSymbol = "^"
End If
If RasterDoc.SpecialRejectedCharacter = "!" Then
RasterDoc.SpecialRejectedCharacter = "!"
End If
End If
' //...
' //... save recognition results using SaveDocument
' //...
RasterDoc.SaveDocument "C:\Ocr1.ocr"
End Sub