I have built code which handles this situation but don't like the solution
as it's a bit of a kluge. The problem arises if the client is running
Outlook with different e-mail formats:
Plain Text
Rich Text
HTML
WordMail
Plain text is easy simply copy the text from the Document.Content.Text
object to MailItem.Body.
With Rich Text, I can save the document as a rich text file, open the file
using whatever means suits your fancy and copy the content into a string.
Dump the string into the MailItem.Body This is a bit of a kluge as we need
an iterim file.
HTML same as Rich Text
I haven't gotten to Word yet.
Here's the question (finally). Using the UI of both Word and Outlook, you
can copy the content of theWord Document into the Clipboard then Paste the
content into the message and the formatting follows. How can this be
achieved programmatically? The command to copy the document to clipboard
is:
objDoc.Select
Selection.Copy
I cannot determine how to paste the content into an open e-mail message.
Regards
Shane
Regards
Shane
Thanks
--
tminihan
------------------------------------------------------------------------
tminihan's Profile: http://www.hightechtalks.com/m839
View this thread: http://www.hightechtalks.com/t984306