Page 1 of 1

Problem to instanciate word from PHP

Posted: Wed Jan 28, 2009 9:34 am
by margot
Hello.
I'm trying to instanciate word with the command :
$word = new COM("word.application") or die("Can't start Word !");

So, it give me the error :
Uncaught exception 'com_exception' with message 'Failed to create COM object `word.application': Unregistered class.

Windows Serveur 2003
Apache 2.2
php 5
Office web componnent installed.

Thanks

margot

Re: Problem to instanciate word from PHP

Posted: Wed Jan 28, 2009 1:24 pm
by margot
I resolve the problem.
Re-install Office!

Thanks