Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
30
UltraCalendarInfo.ExportICalendar does not export recurrence of the event
posted

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.

Parents
No Data
Reply
  • 28945
    Offline posted

    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:VCALENDAR
    PRODID:-//Infragistics,Inc.//UltraWinSchedule
    VERSION:2.0
    METHOD:PUBLISH
    BEGIN:VEVENT
    DTSTART:20181217T184900Z
    DTEND:20181217T204900Z
    UID:97115215-0dc8-4bcf-868d-f09749a433f9
    DTSTAMP:20181217T184946Z
    DESCRIPTION;ENCODING=QUOTED-PRINTABLE:Donuts and bagles provided
    SUMMARY;ENCODING=QUOTED-PRINTABLE:Compnay breakfast meeting
    RRULE:FREQ=WEEKLY;INTERVAL=1;BYDAY=MO;WKST=SU;COUNT=5
    END:VEVENT
    END:VCALENDAR

    See sample attached for more details.

     ExportICalendar_Recurrences.zip

Children
No Data