IcalActiviteitRow act, int id, bool reminder) Each event is enclosed in a BEGIN and an END line. The code sets up the stringbuilder, an unique id, the opening lines and starts looping through the appointments.īuilding these has a little quirk, although the code itself is very straightforward. Sb.AppendLine( "PRODID:-//Microsoft Corporation//Outlook 11.0 MIMEDIR//EN") įor ( int i=0 i < i++)ĪddEvent(acts.IcalActiviteit, i, reminders) Public string MakeCalender( IcalActiviteiten acts, bool reminders) The contents of the file are constructed using a stringbuilder. The appointments are fed from a dataset, where each row describes an appointment. The applet will produce a text file with an ics extension containing. Getting this to work was a little more complicated than it looked due to the somewhat cryptical language of an RFC, contradicting sources on the web and different behavior of Outlook versions. In my case I have an applet which generates a list of appointments which are to be imported by an Outlook user. The iCalendar specs are based on RFC2445, it is supported by several manufacturers and can be used to interchange appointment data with non Outlook users as well. In the formats supported by Outlook you will also find the vCalendar format, iCalendar is basically a newer version of this one. One way is to export or import files in the iCalendar format. You can exchange Outlook appointments with other applications.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |