MODI OCR "class not registered"
- From: "Peter van Schie" <vanschie.peter@xxxxxxxxx>
- Date: 27 May 2005 11:36:32 -0700
Hi all,
I'm trying to get the MODI (Microsoft Office Document Imaging) COM
object working in a Delphi 2005 Win32 app.
What I've done is the following:
* Imported the MODI component and added it to my project
The typelibrary was created and added to my project
* Added MODI_Tlb and ComObj to my uses section of the unit
* Tried the following code to create a MODI.Document object:
procedure TForm1.Button1Click(Sender: TObject);
var
modiDoc: MODI_TLB.Document;
begin
modiDoc := Modi_TLB.CoDocument.Create;
modiDoc.Create('test.tif'); {exception: class not registered}
modiDoc.Close(false);
end;
On the line I marked with the comment I receive a runtime exception
"class not registered".
The MODI component of Office 2003 is installed however. I also checked
it with a C# project. In the C# project MODI works fine.
I also tried this Delphi test app on two other computers with the same
result: the 'class not registered' exception.
Any ideas as to how to solve this?
Thanks in advance.
Kind regards,
Peter van Schie.
.
- Follow-Ups:
- Re: MODI OCR "class not registered"
- From: otaviomacedo@xxxxxxxxx
- Re: MODI OCR "class not registered"
- Prev by Date: Re: Pointer to a Unicode string - returned by API call
- Next by Date: checking arbitrary bounds
- Previous by thread: How to open a windows folder ?
- Next by thread: Re: MODI OCR "class not registered"
- Index(es):