For all those who may be picky, by EmailItem I meant MailItem :)...
This is called being very tired while typing.
Michael
OlDefaultFolders.olFolderInbox.StoreID
What you are passing is the actual folder object, not the StoreID. StoreID
is used optionally and is needed only when more than 1 store has been opened
in the Outlook session. Even then it's optional. Using only EntryID usually
works, but doing Outlook development you get used to working with both belt
and suspenders so I always use both EntryID and StoreID myself.

Signature
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
> Hi all,
>
[quoted text clipped - 40 lines]
> .
> .
Michael H - 11 Jan 2006 18:38 GMT
--> OlDefaultFolders.olFolderInbox.StoreID
-->
--> What you are passing is the actual folder object, not the
StoreID. StoreID
--> is used optionally and is needed only when more than 1 store has
been opened
--> in the Outlook session. Even then it's optional. Using only
EntryID usually
--> works, but doing Outlook development you get used to working with
both belt
--> and suspenders so I always use both EntryID and StoreID myself.
-->
--> --
--> Ken Slovak
--> [MVP - Outlook]
--> http://www.slovaktech.com
--> Author: Absolute Beginner's Guide to Microsoft Office Outlook
2003
--> Reminder Manager, Extended Reminders, Attachment Options
--> http://www.slovaktech.com/products.htm
Thanks For the reply Ken. I'll look at trying this w/o the 2nd
parameter. I don't have a StoreID value available to me that I know of
anyway :(...
Michael
Ken Slovak - [MVP - Outlook] - 11 Jan 2006 20:29 GMT
If you have a folder reference you have a StoreID reference. StoreID is a
property of a folder. Look in the Object Browser. In fact, if you have an
item that has been saved in the store you also have a StoreID property:
Item.Parent.StoreID

Signature
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
> --> OlDefaultFolders.olFolderInbox.StoreID
> -->
[quoted text clipped - 22 lines]
>
> Michael
Michael H - 12 Jan 2006 01:06 GMT
--> If you have a folder reference you have a StoreID reference.
StoreID is a
--> property of a folder. Look in the Object Browser. In fact, if you
have an
--> item that has been saved in the store you also have a StoreID
property:
--> Item.Parent.StoreID
-->
--> --
--> Ken Slovak
--> [MVP - Outlook]
--> http://www.slovaktech.com
--> Author: Absolute Beginner's Guide to Microsoft Office Outlook
2003
--> Reminder Manager, Extended Reminders, Attachment Options
--> http://www.slovaktech.com/products.htm
Ken,
I managed to get this to work doing this...
olApplication = new ApplicationClass();
olNameSpace = this.olApplication.GetNamespace("MAPI");
MailItem item = (MailItem) this.olNameSpace.GetItemFromID(strEntryID,
null);
string retValue = item.Body;
Of course, that Outlook warning window pops up. I've switched to
trying Dmitry Streblechenko's Redemption.DLL but haven't figured out
the exact way to get the MailItem from a known MailItem.EntryID value.
Perhaps, I'll post a question about that into another thread.
Michael