获得Appointment.HTMLBody。展望2016 [英] Get Appointment.HTMLBody. Outlook 2016

查看:134
本文介绍了获得Appointment.HTMLBody。展望2016的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

与Outlook 2010相比,我注意到了这一点。 2013年,Outlook 2016有可能更改文本格式(Html / PlainText / RichText)。我的意思是Outlook UI。

I've noticed that by contrast to Outlook 2010 & 2013, Outlook 2016 has the possibility to change the format of the text (Html/PlainText/RichText). I mean Outlook UI.

我已经为VS 2015安装了最后一个VSTO Update 2,引用了Microsoft.Office.Interop.Outlook。 C:\Program Files(x86)\ Microsoft Visual Studio 14.0 \ Visual Studio for\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\在AppointmentItem界面中的HTMLBody。我是做错了还是这个界面还没有更新并且没有添加HTMLBody?

I have installed the last VSTO Update 2 for VS 2015 , referenced Microsoft.Office.Interop.Outlook. C:\Program Files (x86)\Microsoft Visual Studio 14.0\Visual Studio Tools for Office\PIA\Office15\Microsoft.Office.Interop.Outlook.dll and I still don't see HTMLBody in AppointmentItem interface. Am I doing something wrong or this interface hasn't been updated and  HTMLBody isn't added?

如果是这样,我如何从Appointment获取HTMLBody以及如何插入一些HTML进入它?

If so, how can I get HTMLBody from Appointment and how can I insert some HTML into it?

谢谢。

推荐答案

你好,

你走错了路。 UI或邮件正文没有重大更改。

You are on the wrong avenue. There were no breaking changes for the UI or message bodies.

约会项目使用RTF标记而不是HTML(请参阅
RTFBody
property)。因此,您将找不到约会的 HTMLBody 属性。如果需要将某些HTML标记粘贴到正文,则可以使用Word对象模型。请参阅  写入
HTML内容使用C#
word文档了解更多信息。 

Appointment items use the RTF markup for bodies instead of HTML (see the RTFBody property). So, you will not find the HTMLBody property for appointments. You can use the Word object model if you need to paste some HTML markup to the body. See Write HTML content to word document using C# for more information. 


这篇关于获得Appointment.HTMLBody。展望2016的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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