Outlook 2003不会导入.ics日历,而Outlook 2007会导入.ics日历 [英] Outlook 2003 does not import .ics calendar while outlook 2007 does

查看:143
本文介绍了Outlook 2003不会导入.ics日历,而Outlook 2007会导入.ics日历的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个用PHP手动创建的.ics文件,如下所示:

I have an .ics file I manually create with PHP like the following:

BEGIN:VCALENDAR
PRODID:-//Microsoft Corporation//Outlook 11.0 MIMEDIR//EN
VERSION:2.0
METHOD:PUBLISH
X-MS-OLK-FORCEINSPECTOROPEN:TRUE
BEGIN:VEVENT
CLASS:PUBLIC
DESCRIPTION:Some description here
LOCATION:Scheduled PTO
DTEND;VALUE=DATE:20101104
DTSTART;VALUE=DATE:20101103
PRIORITY:5
SEQUENCE:0
SUMMARY;LANGUAGE=en-us:PTO - 8.00 hour(s)
X-MICROSOFT-CDO-ALLDAYEVENT:TRUE
X-MICROSOFT-MSNCALENDAR-ALLDAYEVENT:TRUE
END:VEVENT
END:VCALENDAR

当导入到Outlook 2007(以及Google日历)中时,此方法工作正常.在Outlook 2003中,出现以下错误:

This works fine when importing into outlook 2007 (as well as Google calendar). In outlook 2003 I get the following error:

如果您尝试以iCalendar格式保存重复的农历日历,则会出现此错误.为避免此错误,请将约会选项设置为Gregorian而不是Lunar."

"This error can appear if you have attempted to save a recurring Lunar Calendar in iCalendar format. To avoid this error, set the appointment option to Gregorian instead of Lunar."

.ics文件中是否需要更改某些内容才能使其与Outlook 2003一起使用?

Is there something I need to change in the .ics file to get this to work with Outlook 2003?

(目前我没有要测试的Outlook 2003)

(I don't have Outlook 2003 to test with at the moment)

推荐答案

因此,在对2003测试系统进行了反复试验之后,我发现添加了以下内容:

So, after some trial and error with a 2003 test system and I found that adding the following:

DTSTAMP:20101103T120000Z

允许Outlook 2003导入.ics文件而不会破坏2007,iCal或Google.
另外,出于良好的考虑,我还在我的最终.ics文件中添加了UID行.

allowed Outlook 2003 to import the .ics file without breaking 2007, iCal or Google.
I also, for good measure added the UID line to my final .ics file.

因此,我的最终.ics文件如下所示:

So, my final .ics file looks like this:

BEGIN:VCALENDAR
PRODID:-//Microsoft Corporation//Outlook 11.0 MIMEDIR//EN
VERSION:2.0
METHOD:PUBLISH
X-MS-OLK-FORCEINSPECTOROPEN:TRUE
BEGIN:VEVENT
CLASS:PUBLIC
DESCRIPTION:Some description here
LOCATION:Scheduled PTO
DTEND;VALUE=DATE:20101104
DTSTART;VALUE=DATE:20101103
DTSTAMP:20101103120000Z
UID: VACATIOND41D8CD98F00B204E9800998ECF8427E
PRIORITY:5
SEQUENCE:0
SUMMARY;LANGUAGE=en-us:PTO - 8.00 hour(s)
X-MICROSOFT-CDO-ALLDAYEVENT:TRUE
X-MICROSOFT-MSNCALENDAR-ALLDAYEVENT:TRUE
END:VEVENT
END:VCALENDAR

我所做的就是在Outlook 2003中创建一个手动条目,将其另存为.ics,并与原始文档进行比较/比较.

All I did was create a manual entry in outlook 2003, saved it as a .ics and did a comparison on what was missing/different from my original.

现在一切正常.

更新 另一项更改是,我删除了VERSION:2.0位,使所有工作更加可靠.

UPDATE One additional change, I removed the VERSION:2.0 bit and that made all work even more reliably.

这篇关于Outlook 2003不会导入.ics日历,而Outlook 2007会导入.ics日历的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆