![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
I'm trying to iterate through all my _future_ appointments but all I
get are appointments from today and into the past. No future appointments are returned. This is what I'm doing: NameSpace ns = theApp.GetNamespace("MAPI"); MAPIFolder cal = ns.GetDefaultFolder(OlDefaultFolders.olFolderCalen dar); cal.Items.Sort("[Start]",true); cal.Items.IncludeRecurrences = true; foreach (AppointmentItem item in cal.Items) { if (item == null) continue; if( item.Start = DateTime.Now ) // do something... } The only appts that show up in cal.Items are from 9/01/2006 to 02/21/2007. I have an appt on 3/1/2007 but it doesn't show up. BTW, I tried: AppointmentItem i = cal.Items.Find("[Start] = '03/01/2006 10:30AM'") as AppointmentItem; and it returned null. Am I doing something wrong? thanks for your time! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Searching for future appointments | trentfieldssr | Outlook - Calandaring | 0 | February 2nd 07 05:37 PM |
Deleting future ocurrences of recurring appointments | MAB | Outlook - Calandaring | 8 | January 17th 07 07:21 PM |
Showing future appointments on calendar | Jeff | Outlook - General Queries | 2 | August 29th 06 03:43 AM |
edit future recurring appointments | Fr Bob | Outlook - Calandaring | 1 | January 24th 06 03:32 PM |
Outlook shows all future appointments as cancelled.. | axn | Outlook - Calandaring | 0 | January 23rd 06 01:07 PM |