Page 1 of 1

COM("Word.Application") problem

Posted: Thu Jun 29, 2006 6:53 am
by jklanka
Pimptastic | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


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

Code: Select all

<?
$word = new COM("Word.Application") or die("Unable to instantiate Word");
?>
But I get the error says

Code: Select all

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


Pimptastic | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]

[quote="[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1"][b]1.[/b] Select the correct board for your query. Take some time to read the guidelines in the sticky topic.[/quote]

Posted: Thu Jun 29, 2006 9:04 am
by Ollie Saunders
try word.application instead of Word.Application

Posted: Thu Jun 29, 2006 11:27 pm
by jklanka
getting the same error for 'word.application' too

Posted: Fri Jun 30, 2006 9:42 am
by Ollie Saunders
ok i don't know anything about COM or OLE really i just saw a lot of people using 'excel.application' in the user notes