Add .ics file to outlook without the user downloading it

701 Views Asked by At

I am writing an ASP.NET webapp together with some other students. We have to make it possible to schedule an appointment in outlook. So far we were able to create a .ics file with the dday iCalendar library. the user can download it and add it to outlook. is there a way to add the ics immediatly to the outlook calender withouth the user forcing to download it?

1

There are 1 best solutions below

0
On

Yes, if the user is using IE and you site is added to the list of trusted sites. If these conditions are met, you can use the Outlook Object Model from your client side Java Script to create an instance of the Outlook.Application object using new ActiveXObject('Outlook.Application'). You can then call Application.CreateItem(1) (1 stands for the olAppointmentItem enum). Populate all the AppointmentItem properties and call AppointmentItem.Save.