如何创建具有多个VEVENTs要导入到现有的Outlook日历一个.ICS文件 [英] How to create a .ICS file with multiple VEVENTs to be imported into an existing Outlook Calendar
问题描述
我有必要以允许用户下载具有多个会议日期的事件。要做到这一点,我已经创建了要下载其产生的.ics文件一个MemoryStream。例如:
I have a need to allow for a user to download an event that has multiple meeting dates. To do this I have created a memorystream to be downloaded which produces a .ics file. For example:
BEGIN:VCALENDAR
PRODID:-//Company//Product//EN
VERSION:2.0
METHOD:PUBLISH
BEGIN:VEVENT
SUMMARY:Subject of Event
LOCATION:Location of Event
UID:1227559810-8527e2c-20847@domain.com
DESCRIPTION:Some description
DTEND:20081101T200000Z
DTSTART:20081101T200000Z
PRIORITY:3
END:VEVENT
BEGIN:VEVENT
...
END:VEVENT
END:VCALENDAR
如果我只包括在该文件中的一个VEVENT它会将其保存到现有的Outlook日历。然而,当我有多个VEVENTs它要打开它作为一个新的日历,在其他日历。
If I only include one VEVENT in this file it will save it to my existing Outlook calendar. However, when I have multiple VEVENTs it wants to open it as a new calendar and files it under "Other Calendars".
有没有办法(不使用文件 - 导入从Outlook)?打开时以指定日历应自动导入到现有日历
Is there a way (without using File - Import from within Outlook) to specify that the calendar should be imported automatically into the existing calendar when opened?
更新:为了澄清,每个VEVENT涉及一个单一的预约。然而,有可能或可能不是一个循环模式。
UPDATE: To clarify, each VEVENT is related to a single "Appointment". However there may or may not be a recurring pattern.
-Mike
推荐答案
我不认为这会工作。后市进口那些开放的规格限制。我有一个类似的问题试图导入vCard文件与多个联系人。我结束了分裂文件,写在Outlook中的脚本导入目录中的所有文件。
I don't think this will work. Outlook is limited in importing those "open" specs. I had a similar problem trying to import a vCard file with multiple contacts. I ended up splitting the file and writing a script in Outlook to import all the files in a directory.
这篇关于如何创建具有多个VEVENTs要导入到现有的Outlook日历一个.ICS文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!