$99 VS $1000+. UI Control for ASP.NET AJAX(contains chart and gridview).
Scheduler control for Windows Forms
Create rich Outlook style functionality and add rich scheduling interfaces to C# Windows application
Home > WinForms UI Controls > User Manual > Import/Export to a Custom File in C#

C# Import/Export Appointments from/to a Custom File with KetticScheduler

KetticScheduler control for WinForms allows the developers to import and export the Scheduler Appointment to a custom file in C# Windows Forms application. This is achieved by creating custom import and export C# classes and then passing the C# class instances to the Import and Export methods. Additionally, the developers can easily use the Import and Export method to import and export Scheduler Appointments in the industry standard ICalendar format. The following C# guide demonstrates how to import and export the Scheduler Appointment to a custom file.

C# Import and Export Scheduler Appointment to a Custom File

We shall create custom C# classes for import and export before we import and export KetticScheduler Appointments to a custom file. The C# code below demonstrates how to create the custom C# classes.

public class CustomImporter : ISchedulerImporter
{
public void Import(ISchedulerData data, string stringData)
{
}
public void Import(ISchedulerData data, System.IO.Stream stream)
{
}
}

public class CustomExporter : ISchedulerExporter
{
public string Export(ISchedulerData data)
{
string result = string.Empty;
return result;
}

public void Export(ISchedulerData data, System.IO.Stream stream)
{
}
}
After creating the custom C# classes, we shall pass the instances of the C# classes to the Import and Export methods in KetticScheduler C# class. The C# code below shows how to achieve this.
C# code for passing instance of custom class to Import method

using (FileStream fileStream = File.Create("file name"))
{
this.radScheduler1.Import(fileStream, new CustomImporter());
}

C# code for passing instance of custom class to Export method

using (FileStream fileStream = File.Create("file name"))
{
this.radScheduler1.Export(fileStream, new CustomExporter());
}
UI Controlsfor Windows Forms
.NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI Design
WinForms UI Controls