Ask a Question related to PHP Bugs, Design and Development.
-
mraji_1 at yahoo dot com #1
#40453 [NEW]: Application Error in New COM ("word.application")
From: mraji_1 at yahoo dot com
Operating system: Win 2000
PHP version: 4.4.4
PHP Bug Type: COM related
Bug description: Application Error in New COM ("word.application")
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 bug report at [url]http://bugs.php.net/?id=40453&edit=1[/url]
--
Try a CVS snapshot (PHP 4.4): [url]http://bugs.php.net/fix.php?id=40453&r=trysnapshot44[/url]
Try a CVS snapshot (PHP 5.2): [url]http://bugs.php.net/fix.php?id=40453&r=trysnapshot52[/url]
Try a CVS snapshot (PHP 6.0): [url]http://bugs.php.net/fix.php?id=40453&r=trysnapshot60[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=40453&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=40453&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=40453&r=needtrace[/url]
Need Reproduce Script: [url]http://bugs.php.net/fix.php?id=40453&r=needscript[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=40453&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=40453&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=40453&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=40453&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=40453&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=40453&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=40453&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=40453&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=40453&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=40453&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=40453&r=float[/url]
No Zend Extensions: [url]http://bugs.php.net/fix.php?id=40453&r=nozend[/url]
MySQL Configuration Error: [url]http://bugs.php.net/fix.php?id=40453&r=mysqlcfg[/url]
mraji_1 at yahoo dot com Guest
-
Acro Pro Update Error: "An invalid application was selected."
All, I've downloaded the V7.0.5 updater for Acro Professional and when I run it, and point it at my version of Acro Pro (v7.0.3), it says "An... -
Package error - "The application InDesign has unexectedly quit".
Hi, I am using Indesign CS2 on MacOS 10.4.6. I use large files over a fast network, which used to be fine, but recently when I come to Package... -
DB Field name="application" and Application scope variables
Hi, There is DB Field application which overwrited ,as I see , Application scope variable Are there way to solve this problem without using... -
"lsass.exe - application error" on bootup
My system displays an "lsass.exe - application error" window with this message: "the application failed to implement properly (0xc0000033)"... -
Error in CreatObject(""): 32797: Application-defined or object-define error
Hi, I am getting "Application-defined or object-define error" when trying to instantiate an MTS component. However, when I run the VB source-code... -
tony2001@php.net #2
#40453 [Opn->Fbk]: Application Error in New COM ("word.application")
ID: 40453
Updated by: [email]tony2001@php.net[/email]
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:
[url]http://snaps.php.net/php5.2-latest.tar.gz[/url]
For Windows:
[url]http://snaps.php.net/win32/php5.2-win32-latest.zip[/url]
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 [url]http://bugs.php.net/?id=40453&edit=1[/url]
tony2001@php.net Guest



Reply With Quote

