Posts

Showing posts from August, 2012

Programmatically add a recurring event to a MOSS 2007 (SharePoint) Calendar

The following function was designed to add an event to a calendar.  Note that I had a custom Category choice field in my calendar, so the line where you set the Category field is commented out so the function will work with a standard MOSS 2007 calendar.   /// <summary>         /// Adds a holiday event to the holiday calendar         ///         /// NOTE: if you are adding a recurring event, then the date portion of the start and end date define the duration of the recurrence.         /// The time portion is the Start and End Time of the event are the start and end times of the event on a single day.         /// </summary>         /// <param name="web"></param>         /// <param name="strListName"></param>         /// <param name="StartDate"></param>         /// <param name="EndDate"></param>         /// <param name="bAllDayEvent"></