php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40453 Application Error in New COM ("word.application")
Submitted: 2007-02-12 21:18 UTC Modified: 2007-02-20 01:00 UTC
Votes:2
Avg. Score:3.5 ± 0.5
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: mraji_1 at yahoo dot com Assigned:
Status: No Feedback Package: COM related
PHP Version: 4.4.4 OS: Win 2000
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2007-02-12 21:18 UTC] 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 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-12 21:27 UTC] 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-20 01:00 UTC] 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".
 [2009-06-26 07:01 UTC] 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.
 [2009-06-26 07:02 UTC] 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.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sun Jan 23 05:03:35 2022 UTC