Export ICalendar to other users

5 posts, 0 answers
  1. Thencho
    Thencho avatar
    18 posts
    Member since:
    Mar 2007

    Posted 13 Feb 2008 Link to this post

    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.
  2. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 14 Feb 2008 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Thencho
    Thencho avatar
    18 posts
    Member since:
    Mar 2007

    Posted 14 Feb 2008 Link to this post


    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
  5. Thencho
    Thencho avatar
    18 posts
    Member since:
    Mar 2007

    Posted 18 Feb 2008 Link to this post

    I'm trying to do this putting the organizer and the attende words in the vcalendar string, but I can't do it.
  6. T. Tsonev
    Admin
    T. Tsonev avatar
    2770 posts

    Posted 20 Feb 2008 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017