OCR method crashing access

frustrating

Registered User.
Local time
Yesterday, 18:26
Joined
Oct 18, 2012
Messages
68
Im testing some code to automate OCR in Access. I'm using this:

Code:
Dim MiDoc as MODI.Document
Set MiDoc = New MODI.Document
miDoc.Create TextBox.Value
miDoc.OCR
Set miDoc = Nothing

It keeps crashing MS Access. I'm not sure what I'm doing wrong. Any ideas?
 
What is that value in TextBox.value?
 
The value is the file path... (eg: "c:whatever.tif")
 
Well provided it is a valid tif file I can't see why it isn't working. Is it actually crashing on the OCR line, or on the create line?
 
Well provided it is a valid tif file I can't see why it isn't working. Is it actually crashing on the OCR line, or on the create line?

Yeah, it's a valid tif. It crashes at the OCR line, the create line works fine.

I noticed that MS Office 2010 doesn't support MODI, but I still don't understand how I'm able to get functionality with everything except the OCR method.
 

Users who are viewing this thread

Back
Top Bottom