View Single Post
  #4  
Old July 22nd 08, 09:14 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Add-in not reading message

The code you show doesn't look like a problem.

Is the mail item displaying?

If it does display does it show the body in the UI?

Do you get Body if you wait a while after opening the item before you read
body?

What about using similar code in the Outlook VBA project, does that work?

--
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


"Peg" wrote in message
...
We are still using mailboxes. Most of our users have pst files but some
keep
their mail on the server and use cached exchange mode.

here is my code for obtaining the message:
...
Outlook.MailItem mi = obj as Outlook.MailItem;
...
mi.Display(false);
...
sNewComments = mi.Body;
...
mi.Close(OlInspectorClose.olSave)
...

There is a lot more of course, so if you need it I do not think you want
it
posted in this forum
--
Peg


Ads