問題描述
我需要允許用戶下載具有多個會議日期的活動.為此,我創建了一個要下載的內存流,它會生成一個 .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 日歷的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!