Jump to content

Com("word.application") Problem


jklanka

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


Link to comment
https://forums.phpfreaks.com/topic/13198-comwordapplication-problem/
Share on other sites

Archived

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

×
×
  • Create New...

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.