将Excel对象插入Outlook消息. [英] Inserting an Excel Object into Outlook Message.

查看:759
本文介绍了将Excel对象插入Outlook消息.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在尝试找到一种使用C#/.Net将Excel对象粘贴到Outlook消息中的方法.我尝试重新创建的行为是当用户在Excel工作表中选择一个范围并将特殊粘贴到新的Outlook消息中时.

我可以创建Excel工作表,保存它,创建新电子邮件,附加新文件,并且没有问题.我只是找不到将所选范围放入消息正文中的方法.

我尝试将工作表保存为HTML并在HTMLBody中使用它,但是它具有框架,它说不被支持.

我应该补充一点,这不是外接程序,而是为我正在开发的内部应用程序增加了功能.我正在使用VS 2008 Professional.

Chuck

Hello all,

I am trying to find a way to paste an Excel object into an Outlook message using C#/.Net. The behavior that I am trying to recreate is when a user selects a range in an Excel sheet and does paste special into a new Outlook message.

I can create the Excel Worksheet, save it, create a new email, attach the new file and have no problem. I just can''t find a way to put the selected range into the message body.

I have tried saving the Worksheet to HTML and using that in the HTMLBody, but it has frames, which it says is not supported.

I should add that this is not an add-in, but added functionality to an in-house application that I am developing. I am using VS 2008 Professional.

Chuck

推荐答案

Visual Studio Tools for Office可以帮助您吗?

使用Visual Studio进行Office开发
Perhaps Visual Studio Tools for Office can help?

Office Development with Visual Studio


谢谢Kim的回复.

我使用VS2008 Professional,并且VSTO集成在IDE中. VSTO主要用于创建Office产品的加载项.

我正在使用Windows Forms应用程序,并且正在向其添加功能以从该应用程序内部创建电子邮件.

卡盘
Thank you Kim for your response.

I use VS2008 Professional and the VSTO is integrated in the IDE. The VSTO is primarily used for creating add-ins to the Office products.

I am working on a Windows Forms application and am adding functionality to it to create an email from within the application.

Chuck


这篇关于将Excel对象插入Outlook消息.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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