MemoryRecognitionResultSize Example for Visual Basic
Private Sub Command20_Click()
Dim nRet As Integer
RasterDoc.EnableSaveResultsToMemory = True
RasterDoc.RecognitionDataFileName = "c:\test.rdf"
RasterDoc.SpellLanguageID = LANGID_ENGLISH
nRet = RasterDoc.Recognize (0, 1)
If nRet = 0 Then
nRet = RasterDoc.SaveResultsToMemory
If (nRet = 0) Then
MsgBox "Recognition Result Size =" + Str(RasterDoc.MemoryRecognitionResultSize)
MsgBox "Recognition Result = " + RasterDoc.MemoryRecognitionResult
Else
MsgBox "Failed to save results to memory"
End If
End If
End Sub