This example demonstrates how various images can be specifed by the Image property. It also shows how specifiec pages within the document can be designated for OCRing by the Pages property.
Private Sub SetImage_Click()
'Showing syntax to have page 1 of a 1.x Server document OCRed
'Note: prefix Image:// denotes service name for 1.x server
Imgocr1.Image = "Image://srvrname\volname:\CAB\DRAWER\FOLDER\YOURDOC"
Imgocr1.Pages = "1"
'Showing syntax to have pages 1 & 4 of a 1.x Server filename OCRed
Imgocr1.Image = "Image://srvrname/volname:/dirname/temp.tif"
Imgocr1.Pages = "1,4"
'Specifying a 3.x Server document to OCR pages 3,4, & 5
'Note: prefix Imagex:// denotes service name for 3.x server
Imgocr1.Image = "Imagex://Docid1234"
Imgocr1.Pages = "3-5"
'Specify an internet image via URL syntax to OCR pages 1,2, & 5
Imgocr1.Image = "http://www.eastmansoftware.com/sbu/sampimg.tif"
Pages = "1-2,5"
'Specify a UNC filename to OCR pages 1,2,5,6, & 7
Imgocr1.Image = "\\srvrname\shared3\images\bw\thisisa.tif"
Imgocr1.Pages = "1-2,5-7"
End Sub