This is a migrated thread and some comments may be shown as answers.

Export ICalendar to other users

4 Answers 96 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Thencho
Top achievements
Rank 1
Thencho asked on 13 Feb 2008, 02:51 PM
Hi

Im trying to export a appointment from RadSchedule to more than one users, I execute the RadScheduler.ExportToICalendar(e.Container.Appointment), in writeCalendar function I want to put the task to outlook calendar from users that appears in the task.

I'm Iosu and I click in export to outlook button, if in appointments there are other resources, I want to export calendar to  Jorge's and Gorka's outlook.

How can I do this?

Thanks for all.

4 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 14 Feb 2008, 04:28 PM
Hi Thencho,

Could you please be more specific? We are not sure we understand what exactly you need to achieve.


Best wishes,
Peter
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Thencho
Top achievements
Rank 1
answered on 14 Feb 2008, 04:59 PM

Hi

I'm using the schedule to show the task that has pending the resources for a workteam, when the project leader click in the button to export the task to Outlook, I want to insert the task in the Project leader outlook calendar and on the resource outlook calendar, using his email direction.

Thanks
0
Thencho
Top achievements
Rank 1
answered on 18 Feb 2008, 03:02 PM
I'm trying to do this putting the organizer and the attende words in the vcalendar string, but I can't do it.
0
T. Tsonev
Telerik team
answered on 20 Feb 2008, 09:27 AM
Hello,

If I understand you correctly, you need to export different sets of appointments, depending on the assigned person. Then you want to send the resulting files to the appropriate persons. I think that the most appropriate way to do this is to export the appointments in a temporary file and send them via the .NET Mail API. You can also use some helper classes like the one from this CodeProject article to make this task easier.

Additional fields can be added to the exported file, but you need to do some string processing. For example, if you need to add an organizer to a single exported appointment, you can do this:

string data = RadScheduler.ExportToICalendar(appointment); 
int summaryIndex = data.IndexOf("SUMMARY:"); 
string preSummary = data.Substring(0, summaryIndex); 
string postSummary = data.Substring(summaryIndex); 
string organizer = "ORGANIZER:XXXXX\n"
string result = preSummary + organizer + postSummary; 


Kind regards,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Scheduler
Asked by
Thencho
Top achievements
Rank 1
Answers by
Peter
Telerik team
Thencho
Top achievements
Rank 1
T. Tsonev
Telerik team
Share this question
or