Hello Michelle,

this worked on my test system ..

win2k sp2,
apache 1.2.34
php 4.2.2

dsig

Monday, September 2, 2002, 10:03:50 AM, you wrote:

M> I am new to COM and tried an example today (See bottom of post)

M> When I execute the code, I get is an error message and if I look in the Task
M> Manager, there is a WINWORD.EXE process running, which I can't end. Every
M> time I reload the page, a new winword is started...

M> How should PHP.ini be set for me to use COM Objects?

M> ---------------------------------
M> Error message:
M> Warning: Unable to obtain IDispatch interface for CLSID
M> {000209FF-0000-0000-C000-000000000046}: The message filter indicated that
M> the application is busy. in d:\inetpub\wwwroot\incmill\ver2\readfile.php on
M> line 2
M> Unable to instantiate word

M> Setup:
M> Windows 2000 Professional
M> PHP 4.2.1
M> Office 2000

M> PHP.ini
M> COM values:
M> Directive, Local Value, Master Value
M> com.allow_dcom, Off, Off
M> com.autoregister_casesensitive, On, On
M> com.autoregister_typelib, Off, Off
M> com.autoregister_verbose, Off, Off
M> com.typelib_file,  no value,  no value


M> Code:
M> $word = new COM("word.application") or die("Unable to instantiate Word");
M> print "Loaded Word, version {$word->Version}<BR>";
$word->>Visible = 1;
$word->>Documents->Add();
$word->>Selection->TypeText("This is a test...");
$word->>Documents[1]->SaveAs("Useless test.doc");
$word->>Quit();








-- 
DSig                                 `````
David Tod Sigafoos                  ( O O )
mailto:[EMAIL PROTECTED] _______oOOo__( )__oOOo_______

Using 'The Bat' 1.61
Using 'OS' Windows 2000 Service Pack 2


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to