ICal import creates new calendar When Open the ics file

牧云@^-^@ 提交于 2019-11-27 06:50:10

问题


I'm working on "Add to Calendar" feature from my Sharepoint webpart (created using VS2010).

I have exported the ICS file programatically with no issues.

But the problem is when I try to open the ICS file from OUTLOOK.

If the ICS file has single appointment, no issues....

If the ICS file has multiple appointments, the problem comes...

When I do File >> Open >> Import >> Choose ics file, it works fine

But If I try to just double click the ICS file, it creates a NEW calendar instead of updating my existing default calendar

Any suggestions...?


回答1:


See this SO post which suggests that Outlook will only support multiple events using ICS as a feed or subscription - not directly as a single ICS import.




回答2:


We had a similar problem and found that if the ICS file had the X-WR-CALNAME field in it, even if is was blank, then Outlook would automatically create a new calendar. If it did NOT have this field in it, then Outlook imported it.




回答3:


I had the same problem. When clicking on a .ics file outlook creates a new calendar rather then updating a existing calendar.

I solved this by adding this descriptor in the .ics file:

X-WR-RELCALID:XXXXXX

where XXXXXX is a unique value for the calendar. Outlook will then ask you for replacing the calendar, rather than adding a new.

The descriptor was found on http://en.wikipedia.org/wiki/ICalendar



来源:https://stackoverflow.com/questions/9212329/ical-import-creates-new-calendar-when-open-the-ics-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!