I'm playing around with VSTO for Outlook 2007.
When accessing appointments in calendar, I'd like to see all recurrences - not only the series-main item.
My code is as following
var calendarFolder = Globals.TestAddin.Application.GetNamespace("MAPI").GetDefaultFolder(OlDefaultFolders.olFolderCalendar);
var outlookCalendarItems = calendarFolder.Items;
outlookCalendarItems.IncludeRecurrences = includeRecurring;
var appointmentItems = outlookCalendarItems.Cast<AppointmentItem>();
foreach ( var appointmentItem in appointmentItems )
{
var item = appointmentItem;
this.LogBox.AppendText(item.Subject);
}
It shows all normal items, all series-master items but no calculated series appointments.
Example: it shows my mothers birthday in october 1949 as an recurring item, but none of her following birthdays in 1950, 1951... etc.
What am I doing wrong?
Thanks for ideas!
Sascha