ZJ.Mike.2009 has asked for the wisdom of the Perl Monks concerning the following question:
I'm following an article (http://www.codeproject.com/KB/office/OCRSampleApplication.aspx) to try using OCR in ActivePerl 5.10.0 but without any luck. The following minimal code keeps failing at the Create step and I don't understand why. Any idea what's going on? Thanks :)
use warnings; use strict; use Win32::OLE; use Win32::OLE::Const; Win32::OLE::Const->Load("Microsoft Office Document Imaging 12\.0 Type +Library") or die "Cannot use the Office 2007 OCR API"; my $miDoc = Win32::OLE->new('MODI.Document') or die "Cannot create a M +ODI object"; $miDoc->Create('E:/ocr-test.tif') or die "Cannot open the file for OCR +";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Why the Create method keep failing using Office 2007 OCR API?
by RyuMaou (Deacon) on Mar 01, 2010 at 15:05 UTC | |
by ZJ.Mike.2009 (Scribe) on Mar 02, 2010 at 03:04 UTC | |
by ZJ.Mike.2009 (Scribe) on Mar 02, 2010 at 12:06 UTC | |
by Anonymous Monk on Mar 02, 2010 at 03:46 UTC | |
by ZJ.Mike.2009 (Scribe) on Mar 02, 2010 at 04:15 UTC | |
by Anonymous Monk on Mar 02, 2010 at 04:31 UTC | |
|