Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Posted
Updated 5-Aug-10 5:36am
v2

Perhaps Visual Studio Tools for Office can help?

Office Development with Visual Studio
 
Share this answer
 
v2
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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900