I\'m trying to get all appointments in outlook in week range, but reoccurring appointments are not showing up.
Here is the code:
var outlook = ne
You have to use recurrence pattern Put this inside your loop:
if (item.IsRecurring) { Microsoft.Office.Interop.Outlook.RecurrencePattern rp = item.GetRecurrencePattern(); DateTime first = new DateTime(2011, 11, 7, item.Start.Hour, item.Start.Minute, 0); DateTime last = new DateTime(2011, 12, 1); Microsoft.Office.Interop.Outlook.AppointmentItem recur = null; for (DateTime cur = first; cur <= last; cur = cur.AddDays(1)) { recur = rp.GetOccurrence(cur); Console.WriteLine(cur.ToLongDateString()); } }
see this for more info