#40453 [Com]: Application Error in New COM ("word.application")
| From: | ghanshyam12 at in dot com | Date: | Fri, 26 Jun 2009 07:02:11 +0000 |
| Subject: | #40453 [Com]: Application Error in New COM ("word.application") | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-138843@lists.php.net to get a copy of this message | ||
ID: 40453
Comment by: ghanshyam12 at in dot com
Reported By: mraji_1 at yahoo dot com
Status: No Feedback
Bug Type: COM related
Operating System: Win 2000
PHP Version: 4.4.4
New Comment:
I am using the same concept to read a doc file and save a txt file. On
my server PHP5 is installed and i am getting the error that:
Fatal Error: COM class Not Found.
Previous Comments:
------------------------------------------------------------------------
[2009-06-26 07:01:28] ghanshyam12 at in dot com
I am using the same concept to read a doc file and save a txt file. On
my server PHP5 is installed and i am getting the error that:
Fatal Error: COM class Not Found.
------------------------------------------------------------------------
[2007-02-20 01:00:00] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2007-02-12 21:27:11] tony2001@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.2-win32-latest.zip
------------------------------------------------------------------------
[2007-02-12 21:18:54] mraji_1 at yahoo dot com
Description:
------------
I am using Apache/1.3.33 (Win32) PHP/4.3.10 that was part of easyphp
When I try to instantiate the word application, I get the following
Warning :-
Warning: (null)(): Type library value emptyenum is already defined and
has a different value in c:\program
files\3w\www\whowhatwhere\createw.php on line 3
The rest of the code executes and word application opens and inserts my
text.
Thanks
Best
Raji
Reproduce code:
---------------
<?php
$word = new COM("word.application");
//die("Impossible to instantiate WordApp");
print "Word is running, version {$word->Version}\n</br>";
$word->Visible=1;
$word->Documents->Add();
$word->Selection->TypeText("This is a test...");
$word->Documents[1]->SaveAs("test_com_php.doc");
$word->Quit();
?>
Expected result:
----------------
No Warning messages
Actual result:
--------------
Warning: (null)(): Type library value emptyenum is already defined and
has a different value in c:\program
files\3w\www\whowhatwhere\createw.php on line 3
Warning: (null)(): Type library value emptyenum is already defined and
has a different value in c:\program
files\3w\www\whowhatwhere\createw.php on line 3
Warning: (null)(): Type library value emptyenum is already defined and
has a different value in c:\program
files\3w\www\whowhatwhere\createw.php on line 3
Warning: (null)(): Type library value emptyenum is already defined and
has a different value in c:\program
files\3w\www\whowhatwhere\createw.php on line 3
Warning: (null)(): Type library value emptyenum is already defined and
has a different value in c:\program
files\3w\www\whowhatwhere\createw.php on line 3
Warning: (null)(): Type library value emptyenum is already defined and
has a different value in c:\program
files\3w\www\whowhatwhere\createw.php on line 3
Warning: (null)(): Type library value emptyenum is already defined and
has a different value in c:\program
files\3w\www\whowhatwhere\createw.php on line 3
Warning: (null)(): Type library value emptyenum is already defined and
has a different value in c:\program
files\3w\www\whowhatwhere\createw.php on line 3
Warning: (null)(): Type library value emptyenum is already defined and
has a different value in c:\program
files\3w\www\whowhatwhere\createw.php on line 3
Warning: (null)(): Type library value emptyenum is already defined and
has a different value in c:\program
files\3w\www\whowhatwhere\createw.php on line 3
Warning: (null)(): Type library value emptyenum is already defined and
has a different value in c:\program
files\3w\www\whowhatwhere\createw.php on line 3
Warning: (null)(): Type library value emptyenum is already defined and
has a different value in c:\program
files\3w\www\whowhatwhere\createw.php on line 3
Warning: (null)(): Type library value emptyenum is already defined and
has a different value in c:\program
files\3w\www\whowhatwhere\createw.php on line 3
Warning: (null)(): Type library value emptyenum is already defined and
has a different value in c:\program
files\3w\www\whowhatwhere\createw.php on line 3
Word is running, version 10.0
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40453&edit=1