This example shows how OCR Options - including dictionary, language, and OCR training - might be set prior to performing OCR on the current image.
Private Sub cmdSetTraining_Click()
Imgocr1.Language = wiEnglish 'Recognize English characters
Imgocr1.LoadDictionary ("c:\Program Files\Common Files\Microsoft
Shared\Proof\custom.dic")
Imgocr1.TrainingFile = "d:\windows\system\german.trn"
Imgocr1.TrainingFileOptions = 1 'Indicate training is to be interactive
Imgocr1.TrainingThreshold = 400 'Prompt user for correction if
'confidence level < 400
Imgocr1.StartOcr
End Sub