Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

SchedulerDataStorage.ExportToOutlook() Method

Exports the data in the storage to the MS Outlook calendar.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v24.2.dll

NuGet Package: DevExpress.Win.Scheduler

#Declaration

public void ExportToOutlook()

#Remarks

Use the SchedulerDataStorage.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.

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();
}
See Also