Scanner ActiveX Control

OCRGetRecognizedCharCode

 

Returns the ACSII code of one of the characters recognized during the last OCR process done by the OCRStartScan() method.

Public Function OCRGetRecognizedCharCode( _
   ByVal iCharIndex As Integer
) as Integer

 

Parameter

iCharIndex
   the index of characters. The first index is 1.


Return Value
    The ACSII code of one of the characters recognized.

Example

   

Visual Basic Syntax
Scanner1.OCRRecognizeMode=0
Scanner1.OCRStartScan(0, "dictfiles")

'after OCRRecognized event fired
 For i = 1 To Me.Scanner1.OCRGetRecognizedCharCount
     MsgBox Str(Me.Scanner1.OCRGetRecognizedCharCode(i))
Next