Export and Import
- 2 minutes to read
You can import/export the Scheduler control’s appointments in the iCalendar format. This format is used to transfer data between calendar and scheduling applications, including Apple iCal, Google Calendar, Microsoft Exchange Server, Microsoft Office Outlook, Novell GroupWise, and Windows Calendar.
This document consists of the following sections.
Export
The iCalendarExporter class allows you to export appointments. Follow the steps below to export scheduler appointments to the iCalendar format.
Create an iCalendarExporter class instance in code.
Create a stream and pass it to the AppointmentExporter.Export method.
The stream now contains appointment data in the iCalendar format. You can save the stream’s content on server or pass this content to the client by writing it to the HTTP output.
Import
The iCalendarImporter class allows you to import appointments. Use the following steps to import scheduler appointments from the iCalendar format:
Create an instance of the iCalendarImporter class in code.
Pass a stream with iCalendar data to the AppointmentImporter.Import method to load data to the Scheduler.