GetItemFromID and Exchange

M

Mike Buch

Hello,
i have the follow problem:
But not in VB, i have the Problem in Delphi

If i call the function GetItemFromID(MailID,StoreID)
it works ony fine if i have a local pst File, but it works not if
Outlook 2000 Postoffice i a Exchange Postoffice
My Code:

o_Outlook := CoApplication_.Create;
o_NameSpace := o_outlook.GetNamespace('MAPI');
o_NameSpace.Logon('','',FALSE,FALSE);
o_Mail := (o_NameSpace.GetItemFromID(MailEntryID, o_StoreID) as
_MailItem); // <= Error if Exchange Postoffice
o_Mail.Display(Wait);

I get the OLEException: Object not Found.
I need help.
(Sorry for bad english)

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top