PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook Interoperability Emulate "Insert as Text"

Reply

Emulate "Insert as Text"

 
Thread Tools Rate Thread
Old 09-12-2003, 09:35 PM   #1
Bob Marquette
Guest
 
Posts: n/a
Default Emulate "Insert as Text"


I am automating Outlook from a VB application. I have a
scenario where I would like to add an attachment as text
in the body of the message. This is done in the UI by
selecting Insert | File... , then using the drop-down on
the Insert button and selecting Insert as Text.

Does anyone know of a way of doing this via the object
model?

  Reply With Quote
Old 26-12-2003, 08:23 PM   #2
Sue Mosher [MVP]
Guest
 
Posts: n/a
Default Re: Emulate "Insert as Text"

If you are using Word as the email editor, you'd use Word's
Selection.InsertAfter method to add text at the insertion point. In the
regular Outlook editor, you'd have to use a copy/paste kludge.

FYI, programming questions should be addressed to the
microsoft.public.outlook.program_vba newsgroup.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Bob Marquette" <anonymous@discussions.microsoft.com> wrote in message
news:0e9901c3be9c$63954b50$a001280a@phx.gbl...
> I am automating Outlook from a VB application. I have a
> scenario where I would like to add an attachment as text
> in the body of the message. This is done in the UI by
> selecting Insert | File... , then using the drop-down on
> the Insert button and selecting Insert as Text.
>
> Does anyone know of a way of doing this via the object
> model?
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off