Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Paste From Clipboard into Message Body

1 view
Skip to first unread message

Shane Brodie

unread,
Sep 4, 2003, 11:24:51 AM9/4/03
to
I have an application wich is used to generate documentation in MS Word 2000
which is then sent to 1 or more e-mail addresses via Outlook 2000. The
client wants the document inserted into the message a body as opposed to
attaching the document as an attached Word file.

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


Shane Brodie

unread,
Sep 8, 2003, 3:39:32 PM9/8/03
to
Can I assume from the lack of response, that nobody has an answer for this
one?

Regards

Shane


tminihan

unread,
Jan 26, 2006, 5:23:05 PM1/26/06
to

Hi Shane,
Have you ever received a response? I'm trying to do the same thing.

Thanks


--
tminihan
------------------------------------------------------------------------
tminihan's Profile: http://www.hightechtalks.com/m839
View this thread: http://www.hightechtalks.com/t984306

0 new messages