Another thing to keep in mind is that Office products can run
"invisible".  Sometimes you'll get COM failures and can't understand why
and it turns out that Word or Excel or whatever is still running, just
not visible.  Pull up your Task Manager and look for the process and
kill it.

The property in VBA is "applicationobjectname.Visible = True"  (or
False)

I forget the exact syntax for PHP, but you get the idea.

There's also a ".UserControl" T/F property that tells the application
whether it's allowed to auto-close when the COM call is done or if it
needs to stay open for the user to manipulate.  TRUE means to stay open
(even if it's not visible).

-TG

> -----Original Message-----
> From: M. Sokolewicz [mailto:[EMAIL PROTECTED] 
> Sent: Saturday, September 04, 2004 8:19 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Re: Unable to open word document.
> 
> 
> Cbharadwaj wrote:
> > Hi,
> > 
> > I am asked to generate reports on MS WORD.
> > OFFICE 2000 is installed in mechine.
> > when I am calling a PHP page containin this  code.
> > 
> > $word = new COM("word.application") ;
> > 
> > I am getting following error.
> > Warning: (null)(): Unable to obtain IDispatch interface for CLSID
> > {000209FF-0000-0000-C000-000000000046}:
> > The message filter indicated that the application is busy
> > 
> > your valuable help is needed.
> > 
> > Bharadwaj.
> try closing word and running the script again...
> Also, which version of PHP are you using? Because asof PHP5 the COM 
> section has been thoroughly rewritten and is much easier to 
> use (aswell 
> as quicker, more stable, etc).
> 
> Besides that, could you PLEASE adjust your system time, it's 
> miles ahead 
> and your messages don't order right in my mailclient. Thank you :)
> 
> - Tul
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

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

Reply via email to