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 +";
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |