Problem to instanciate word from PHP

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
margot
Forum Newbie
Posts: 2
Joined: Wed Jan 28, 2009 9:23 am

Problem to instanciate word from PHP

Post 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
margot
Forum Newbie
Posts: 2
Joined: Wed Jan 28, 2009 9:23 am

Re: Problem to instanciate word from PHP

Post by margot »

I resolve the problem.
Re-install Office!

Thanks
Post Reply