SchedulerStorageBase.ExportToOutlook() Method
Exports the data in the storage to the MS Outlook calendar.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v20.2.Core.Desktop.dll
NuGet Packages: DevExpress.Scheduler.CoreDesktop, DevExpress.WindowsDesktop.Scheduler.CoreDesktop
Declaration
Remarks
Use the SchedulerStorageBase.CreateOutlookExporter method if you need to control how appointments are posted to the MS Outlook’s Calendar. Call this method to create an AppointmentExporter object and subscribe to its events to control export operations.
Example
This code snippet shows how to export only selected appointments to MS Outlook. Create a new storage, copy selected appointments to the storage and call the SchedulerDataStorage.ExportToOutlook method.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-export-import-appointments-to-from-ms-outlook-calendar-t297633
AppointmentBaseCollection apts = schedulerControl1.SelectedAppointments;
if (apts != null) {
SchedulerStorage storage = new SchedulerStorage();
foreach (Appointment apt in apts) {
Appointment aptCopy = apt.Copy();
storage.Appointments.Add(aptCopy);
}
storage.ExportToOutlook();
}
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ExportToOutlook() method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.