MODI OCR "class not registered"



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.

.