470,815 Members | 1,324 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,815 developers. It's quick & easy.

Outlook Com access

I'm trying to develop a personal start page on my machine that would
have my outlook calendar on the page. I've seen Konfabulator widgets
that access the Outlook calender and a php class that I could not get
to work for mail at

http://www.programmersheaven.com/art...ogomil/art.htm

Has anyone been able to do this with outlook 2003/winxp/apache/php?
Willing to provide an example?

-Robert

Oct 21 '05 #1
3 1872
If you're willing to use some VBscript on the page a quick way to show any
outlook folder would be to use the outlook view control - activeX solution.

Joe

"Robert Rescot" <ro***********@gmail.com> wrote in message
news:11**********************@o13g2000cwo.googlegr oups.com...
I'm trying to develop a personal start page on my machine that would
have my outlook calendar on the page. I've seen Konfabulator widgets
that access the Outlook calender and a php class that I could not get
to work for mail at

http://www.programmersheaven.com/art...ogomil/art.htm

Has anyone been able to do this with outlook 2003/winxp/apache/php?
Willing to provide an example?

-Robert

Oct 23 '05 #2
The Outlook View Control is great but it only works in IE... is there
another solution that is cross browser compatible

Oct 25 '05 #3
I'm trying to develop a personal start page on my machine that would
have my outlook calendar on the page. I've seen Konfabulator widgets

I'm feeling generous today... I couldn't get the filter to work in the
time available, so that's an exercise for the reader.
<?php

set_time_limit(0);

// 2005-10-25 sa [go********@nastysoft.com]
// no rights reserved, no refunds

define( 'olFolderCalendar', 9 );
$objOLApp = new COM("Outlook.Application") or die("Unable to
instantiate Outlook");
print "Outlook v" . $objOLApp->Version() . "<br><br>\n";
$objNameSpace = $objOLApp->GetNamespace('MAPI');
$objCalendarFolder = $objNameSpace->GetDefaultFolder(
olFolderCalendar );
$objCalendarItems = $objCalendarFolder->Items();
$objCalendarItems->IncludeRecurrences = 0;
$objCalendarItems->Sort( '[Start]' );

/* OT: SADLY, THIS FAILS TO FILTER ITEMS - ANYONE KNOW WHY? */
$objCalendarItem = $objCalendarItems->Find( '[Start]>="01-Jul-2005
12:00 AM"' );

while( $objCalendarItem )
{
$lngStartDate = $objCalendarItem->Start();
// manually filter - could take a long time...
if( $lngStartDate >= mktime( 0, 0, 0, 6, 1, 2005 ) )
{
$strStartDate = date( 'd-M-Y', $lngStartDate );
$strStartTime = date( 'H:i', $lngStartDate );
$lngDuration = $objCalendarItem->Duration() / 60;
switch( $lngDuration )
{
case 0: $strTimeDuration = $strStartTime . " (Reminder)";
break;
case 24: $strTimeDuration = "all day"; break;
default: $strTimeDuration = $strStartTime . " " . strval(
$lngDuration ) . " hrs"; break;
}
$strSubject = $objCalendarItem->Subject();
print $strStartDate . " - " . $strTimeDuration . " - " .
$strSubject . "<br>\n";
}
$objCalendarItem = $objCalendarItems->FindNext();
}

unset( $objCalendarItem );
unset( $objCalendarItems );
unset( $objCalendarFolder );
unset( $objNameSpace );

unset( $objOLApp );

?>
---
Steve

Oct 25 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Daniel Pope | last post: by
3 posts views Thread by Kurt | last post: by
2 posts views Thread by Snig | last post: by
26 posts views Thread by Tom Becker | last post: by
7 posts views Thread by Dean Spencer | last post: by
6 posts views Thread by Kevin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.