Is it possible to convert List of Outlook.AppointmentItem objects to a single ICS file in C# -


i have got list<outlook.appointmentitem> add events in list in single ical (.ics) file.

i have managed create 1 ics file each appointment item. need of items same ics file.

private void createoutlookappts(list<event> evts) {     appts = new list<outlook.appointmentitem>();     outlook.application outlook = new outlook.application();     int count = 1;     foreach (event evt in evts)     {         outlook.appointmentitem appt =                             outlook.createitem(outlook.olitemtype.olappointmentitem);         appt.duration = 60;         appt.start = evt.eventtime;         appt.subject = "xxxxxx";         appt.saveas(@"c:\test\ical_appts\appt_" + count + ".ics", outlook.olsaveastype.olical);         appts.add(appt);         count++;     } 

}

is possible possible achieve using of microsoft outlook reference menthods or other efficient means?

thanks, shivram.

no, outlook object model doesn't proide property or method that. may consider saving each appointment using saveas method , combining appointments single ics file reading file content on disk, i.e. merging files content.


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -