EWS manged API - 约见HTML主体和Outlook 2013 [英] EWS manged API - Appointment with Html Body and Outlook 2013

查看:263
本文介绍了EWS manged 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是你所需要的属性。在EWS托管API,它是MAPI属性支持作为扩展属性 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 manged API - 约见HTML主体和Outlook 2013的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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