本文介绍了如何创建包含多个 VEVENT 的 .ICS 文件以导入现有 Outlook 日历的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要允许用户下载具有多个会议日期的活动.为此,我创建了一个要下载的内存流,它会生成一个 .ics 文件.例如:

开始:VCALENDARPRODID:-//公司//产品//EN版本:2.0方法:发布开始:事件摘要:事件主题地点:活动地点UID:1227559810-8527e2c-20847@domain.com描述:一些描述DTEND:20081101T200000ZDTSTART:20081101T200000Z优先级:3结束:事件开始:事件...结束:事件结束:VCALENDAR

如果我在此文件中只包含一个 VEVENT,它会将其保存到我现有的 Outlook 日历中.但是,当我有多个 VEVENT 时,它想将其作为新日历打开并将其归档在其他日历"下.

有没有办法(不使用文件 - 从 Outlook 中导入)指定日历在打开时应自动导入现有日历?

更新:澄清一下,每个 VEVENT 都与一个约会"有关.但是,可能有也可能没有重复的模式.

-迈克

解决方案

我认为这行不通.Outlook 在导入这些开放"规范方面受到限制.我在尝试导入具有多个联系人的 vCard 文件时遇到了类似的问题.我最终拆分了文件并在 Outlook 中编写了一个脚本来导入目录中的所有文件.

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

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".

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?

UPDATE: To clarify, each VEVENT is related to a single "Appointment". However there may or may not be a recurring pattern.

-Mike

解决方案

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.

这篇关于如何创建包含多个 VEVENT 的 .ICS 文件以导入现有 Outlook 日历的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-05 09:28