Jump to content


Com("word.application") Problem

  • Please log in to reply
1 reply to this topic

#1 jklanka

  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 29 June 2006 - 11:56 AM

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

#2 gerkintrigg

  • Members
  • PipPipPip
  • Magician
  • 828 posts
  • LocationBristol, UK
  • Age:37

Posted 29 June 2006 - 01:40 PM

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
Neil Trigger - http://www.ghostlypublishing.co.uk - Ghostly Publishing - Children's Fantasy Books

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users