Re: outlook calendar
| From: | tg-php at gryffyndevelopment dot com | Date: | Tue, 08 Feb 2005 04:23:31 +0000 |
| Subject: | Re: outlook calendar | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-25528@lists.php.net to get a copy of this message | ||
You know, I forgot but I think that depending on the version of Outlook, you might have to replace
the "outlook.application" with something else.
Maybe not.. hmm.. I can't find any examples where something other than
'outlook.application' is used. Maybe I'm wrong there.
At any rate, I'd check to make sure you're instantiating the COM object. Maybe try
connecting to Excel or another MS program via COM.
I havn't played with PHP5 yet, so can't tell ya if it does anythig differently or needs
any extra TLC.
Let us know if you find anything interesting.
-TG
= = = Original message = = =
tg-php@gryffyndevelopment.com wrote:
> $comobjOutlook = new COM("outlook.application") or die("Unable to instantiate
> outlook"); $comobjOutlook -> Activate;
>
PHP 5.0.3 crashed after trying this... it complained that there was no
property named "Activate". I then tried changing Activate to Activate()
in case it was supposed to be a method, but that failed as well. So
much for copy and paste, is it ever that easy?
I always have problems with COM. :-/ Perhaps there is another issue
that I'm unaware of that is preventing me from using COM and / or
preventing Outlook from responding correctly? Anyone know what I might try?
I should probably add: I'm running Win2K v5.00.2195 (with all critical
updates). I will try running this code on my WinXP laptop later to see
if the OS is my issue...
___________________________________________________________
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.