EWS托管的API-使用HTML正文和Outlook 2013进行约会 [英] EWS managed API - Appointment with Html Body and Outlook 2013
本文介绍了EWS托管的API-使用HTML正文和Outlook 2013进行约会的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用包含超链接的HTML正文创建约会,如本示例所示:
I'm trying to create an Appointment with an Html Body containing a Hyperlink, like it is shown in this Example:
ewsAppointment = new EwsData.Appointment(service);
ewsAppointment.Subject = "Test";
var element = new XElement("html",
new XElement("body",
new XElement("p",
new XElement("a",
new XAttribute("href", "http://www.google.it/"),
"google")),
new XElement("p", "test 2"))));
ewsAppointment.Body.BodyType = EwsData.BodyType.HTML;
ewsAppointment.Body = element.ToString();
ewsAppointment.Save(SendInvitationsMode.SendToNone);
当我在Outlook 2010中打开此约会时,正文看起来像预期的一样:
When i open this Appointment in Outlook 2010, the Body looks as expected:
但是在Outlook 2013中,主体的格式丢失了,看起来像这样:
But in Outlook 2013, the formatting of the Body is lost and it looks like this:
有什么主意我可以解决这个问题吗?
Any idea how i can fix this Problem?
推荐答案
您需要的是PR_RTF_COMPRESSED属性.它是MAPI属性,在EWS托管API和 Exchange Web服务.NET
The property PR_RTF_COMPRESSED is what you need. It is MAPI property supported as extended property in EWS Managed API and Exchange Web Services .NET
这篇关于EWS托管的API-使用HTML正文和Outlook 2013进行约会的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文