使用VB.NET将excel范围值作为格式化的富文本格式粘贴到Outlook正文邮件中 [英] Paste the excel range value as formatted rich text format into outlook body mail using VB.NET

查看:307
本文介绍了使用VB.NET将excel范围值作为格式化的富文本格式粘贴到Outlook正文邮件中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须从Excel工作表复制范围值并将其粘贴到Outlook邮件正文中作为格式化的富文本格式,不在HTML b''cos中它在BB设备中不起作用,所以RTF



我已经达到了以下论坛中给出的HTML格式



http://stackoverflow.com//questions/10707491 / copy-values-from-excel-to-body-of-outlook-email-vb-net [ ^ ]



但现在我需要以格式化的富文本格式粘贴。



这可能有效吗?从Excel复制,在Word中使用RTF粘贴特殊,然后从Word复制并使用VB.Net将其粘贴到Outlook邮件中?



专家,请帮助我这方面。



谢谢

Allen

I have to copy the range value from an Excel sheet and paste it in Outlook mail body as formatted rich text format, Not in HTML b''cos it doesn''t work in BB device, So RTF.

I have achieved HTML format as given in this below forum

http://stackoverflow.com//questions/10707491/copying-values-from-excel-to-body-of-outlook-email-vb-net[^]

But now I need to be pasted in formatted rich text format.

May be this works? Copy from Excel , Paste special with RTF in a Word, then copy from Word and paste it in Outlook mail, using VB.Net?

Experts, please help me in this regard.

Thanks
Allen

推荐答案

MailItem [ ^ ] - 表示邮件消息的对象 - 有2个有趣的属性:

1) RTFBody [ ^ ]



2)HTMLBody [ ^ ]

你可以使用它们来创建格式化的邮件消息。
MailItem[^] - object which represents mail message - has 2 interesting properties:
1) RTFBody[^]
and
2) HTMLBody[^]
You can use them to create formatted mail messages.


这篇关于使用VB.NET将excel范围值作为格式化的富文本格式粘贴到Outlook正文邮件中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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