Re: Writing text to the "read message"



If this code is running in the form then use Item.Body for the plain text contents and Item.HTMLBody for any HTML contents (which must be in correct HTML syntax).

If the code is running in the Outlook VBA project or elsewhere and the email where you want to place the text is the ActiveInspector then use Application.ActiveInspector.CurrentItem.Body or .HTMLBody. With standalone or COM addin code instantiate an Outlook.Application object (in a COM addin from the trusted Application object that's passed to you) and use that instead of Application.

Which book did you buy?

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"cmonroe21" <u48566@uwe> wrote in message news:8f9973dd2558a@xxxxxx
Hi there. I have a project that I have been unable to get help on, so I went
out and bought MS Outlook 2007 Programming the book, and am still having
problems :(

What I'm doing here is creating an email with a number of fields and controls
for the composer to use. The recipient of this email is going to be a
computer that can extract data from text in the email message box. So, I
need to be able to print the user-selected contents of the controls (via .
Value or .Text ???) in text form onto the "read message" email message. The
forms are created, I just don't know how to access the Read Message box.

Thank you so much! I look forward to hearing from you!


.



Relevant Pages

  • RE: Office 2003 and HTML forms in body...
    ... the received html page in a email message did ... we can try to save the outlook email message as ... html file, and then open the html file in IE directly. ...
    (microsoft.public.office.developer.office.sdks)
  • Re: Printing specific pages???
    ... I had not noticed the difference in HTML vs. ... > when I open an email message in plain text. ... > on our network and they all act the same way with Outlook ... >>PDA Square Content Developer ...
    (microsoft.public.outlook)
  • Re: Embed HTML Page in Email
    ... Sue Mosher, Outlook MVP ... > I have an HTML page which is a newsletter. ... > There is a .htm page, several images, and a .css page. ... > how to get an HTML page along with several images into an email message. ...
    (microsoft.public.outlook.general)
  • Web pages in Outlook - not attachments
    ... I want to send an html page in outlook as an e-mail message body and not as ... The item in question is a survey form I created as an HTML form. ... email message. ...
    (microsoft.public.outlook.installation)
  • Re: how do I view email message source
    ... > In Outlook Express I can right click on an email message in my inbox and ... > actually opening and displaying the html in most of these messages. ... I don't see an equivalent in Outlook 2003 without actually ...
    (microsoft.public.outlook.general)