Results 1 to 1 of 1

Thread: vb script OCR

Threaded View

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2005
    Posts
    35

    vb script OCR

    why isn't this working, am i doing somthing wrong?

    VB Code:
    1. dim miDoc
    2. miDoc = CreateObject("MODI.Document")
    3. miDoc.Create "C:\ocr.tif"
    4. miDoc.OCR
    5. miDoc.SAVE
    6. Dim strRecText
    7. strRecText = ""
    8. dim imageCounter
    9. For imageCounter = 0 To (miDoc.Images.Count - 1)
    10. strRecText = strRecText & miDoc.Images(imageCounter).Layout.Text
    11. Next
    12. msgbox strRecText
    13. miDoc.Close
    Last edited by vbcooler; Nov 13th, 2007 at 11:44 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width