Word document into outlook E-mail

S

Stephen Plotnick

I need to get the contents of a Word cocument into the body of an E-mail.

I'm using VS 2005 and Word/Outlook 2007.

So far I'm using the copy and select to get the data to the clipboard and
can get the data from the clipboard into the body of an E-mail. My problem
is the format is eitther text not formatted being transferred or HTML code
that is not readable.

When my program finishes I can create an E-mail manually and go to the body
section and just do a CTRL-V and the last thing in the clipboard is the data
created in my program. The results from a manual E-mail are perfect.

Thanks,
Steve
 
D

Doug Robbins - Word MVP

As you have no control over the way in which the recipient reads their
email, you may as well accept the unformatted text. If you want to dictate
how the recipient views the document, you probably should send it as a .pdf
file

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
S

Stephen Plotnick

Doug,

THanks for the reply but the unformatted one looks lousy. All there is is
bold and undelines along with some indenting. I do know how to send as an
attachment but noone I know reads an attachement via an E-mail.

Do you know whay the CTRL-V works so well but not in the VB program?

Steve
 
D

Doug Robbins - Word MVP

You will probably need to try and do something with the Outlook
MailItem.BodyFormat Property and insert the appropriate tags before and
after to get the desired formatting. Not the sort of thing that I would
bother with.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
S

Stephen Plotnick

I found a work around my problem.

I copy/paste from the Word doc to an E-mail body.
I said to view source.
I copy/paste into a normal text editor; I used Visual Skick Edit.
Save the text to a text document.
Used same Word doc to open.
Did a content.text to the msg body.
Worked great.

FOr my needs this works. I do a little manual setup and than my program
sends the E-mail to a couple hundred E-mail accounts in an Excel spreadsheet
for a news letter.

Thanks,
Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top