Hello
I am using the NetAdvantage 2011.1. UltraCalendarInfo.ExportICalendar to save the appointment as an ics file. It works but even if the appointment has the recurrence set into it. It does not get exported to the ics file.
Is there something I missed?
Please let me know.
Thank you.
Hello,
I tested 18.1, since 11.1 no longer supported and the recurrence information is stored under RRULE.
eg.
Appointment app = new Appointment(DateTime.Now, DateTime.Now.AddHours(2)); app.Recurrence = new AppointmentRecurrence(); app.Recurrence.PatternFrequency = RecurrencePatternFrequency.Weekly; app.Recurrence.PatternInterval = 1; app.Recurrence.RangeLimit = RecurrenceRangeLimit.LimitByNumberOfOccurrences; app.Recurrence.RangeMaxOccurrences = 5; app.Recurrence.RangeEndDate = DateTime.Now.AddDays(35); app.Description = "Donuts and bagles provided"; app.Subject = "Compnay breakfast meeting"; Debug.WriteLine(UltraCalendarInfo.ExportICalendar(new Appointment[] { app }));
Output:
BEGIN:VCALENDARPRODID:-//Infragistics,Inc.//UltraWinScheduleVERSION:2.0METHOD:PUBLISHBEGIN:VEVENTDTSTART:20181217T184900ZDTEND:20181217T204900ZUID:97115215-0dc8-4bcf-868d-f09749a433f9DTSTAMP:20181217T184946ZDESCRIPTION;ENCODING=QUOTED-PRINTABLE:Donuts and bagles providedSUMMARY;ENCODING=QUOTED-PRINTABLE:Compnay breakfast meetingRRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=MO;WKST=SU;COUNT=5END:VEVENTEND:VCALENDAR
See sample attached for more details.
ExportICalendar_Recurrences.zip