ID:               40453
 Updated by:       [EMAIL PROTECTED]
 Reported By:      mraji_1 at yahoo dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         COM related
 Operating System: Win 2000
 PHP Version:      4.4.4
 New Comment:

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




Previous Comments:
------------------------------------------------------------------------

[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

Reply via email to