Jump to content

Archived

This topic is now archived and is closed to further replies.

jklanka

Com("word.application") Problem

Recommended Posts

I have MS Office 2003 Installed in My PC. Also Apache 2.x installed locally. I just trying to run a PHP script

<?
$word = new COM("Word.Application") or die("Unable to instantiate Word");
?>

But I get the error says

Fatal error: Uncaught exception 'com_exception' with message 'Failed to create COM object `Word.Application': Server execution failed ' in C:\Program Files\Apache Group\Apache2\htdocs\powerplate\test4.php:2 Stack trace: #0 C:\Program Files\Apache Group\Apache2\htdocs\powerplate\test.php(2): com->com('Word.Applicatio...') #1 {main} thrown in C:\Program Files\Apache Group\Apache2\htdocs\powerplate\test4.php on line 2

Can anybody help on this please


Share this post


Link to post
Share on other sites
Are you sure it's just called "Word"? Bear in mind I know nothing of this kind of use of PHP, but it looks like it can't find the program

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.