Use of COM object
| From: | William Cheung | Date: | Fri, 21 Feb 2003 19:10:19 +0000 |
| Subject: | Use of COM object | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-10143@lists.php.net to get a copy of this message | ||
OS: Win2K
App: Office XP
PHP: 4.2.3
I am trying to use the example in the manual to create a Word COM object.
The Word document is started but there are some warnings when the COM object
is created.
Warning: Type library value emptyenum is already defined and has a different
value in C:\MSWord.php on line 3
The same warning repeated 14 times. I looked at the source and found the
line below causes the warning
$word = new COM("word.application") or die("Unable to instantiate Word");
Could anyone tell me how I could fix the problem?
William Cheung, B.Sc. MCSE MCDBA
Databyte Corp.