You can also export a single event or events from a specified date range. This sample code will include all events from the past 7 days and all future events. VB Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)ĭim events_Renamed As DataTable = Db.LoadEvents((-7), Date.MaxValue)įor Each dr As DataRow In events_Renamed.Rowsĭim evt As = iCal.Create(Of )()Įvt.Start = New iCalDateTime(DirectCast(dr("EventStart"), Date))Įvt.End = New iCalDateTime(DirectCast(dr("EventEnd"), Date))Įvt.Description = DirectCast(dr("EventName"), String)ĭim serializer As New iCalendarSerializer()ĭim output As String = serializer.SerializeToString(iCal) String output = serializer.SerializeToString(iCal) ICalendarSerializer serializer = new iCalendarSerializer() You can export the calendar data in the iCalendar format using DDay.iCal library.Ĭ# protected void Page_Load(object sender, EventArgs e)ĭataTable events = Db.LoadEvents((-7), DateTime.MaxValue) Įvt.Start = new iCalDateTime((DateTime) dr) Įvt.End = new iCalDateTime((DateTime) dr) Įvt.Description = (string)dr The access to the remote calendar is read-only.Any change made in the source will be reflected in the target applicaiton. The calendar application regularly checks the source for changes.The source must be made accessible on a web server (using a special URL).Subscribing to a remote calendar is similar to watching a remote RSS feed: Changing the data in the source will not have any effect on the imported events. ![]() Importing the calendar data is a one-time operation - the users imports the data file and a copy of the events is created in the target calendar. ![]() ![]() When exporting the calendar events to other applications, such as Outlook or Mac OS X Calendar you can choose from two methods:īoth methods require that your application makes the calendar data available in iCalendar format.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |