Outlook ContactItem.Display and .NET

  • Thread starter Thread starter Michael Tissington
  • Start date Start date
M

Michael Tissington

I have a VB 6 OCX
In .NET I create the object and then pass an EntryID for a CONTACT Item.

Then inside the OCX object I do the following code snip

Set Namespace = Outlook.GetNamespace("MAPI")
Namespace.Logon , , , False
StoreEntryID = Namespace.Folders.Item(OutlookRoot).StoreID
Set OutlookItem = Namespace.GetItemFromID(EntryID, StoreEntryID)
OutlookItem.Display False *** .NET error here ***
Set Namespace = Nothing

When I call OCX from anything other than .NET it works correctly
However when called from .NET I get an error on the line marked.

Any ideas please?
 
Thanks but I think I'm already doing most of this - and I am getting a VERY
specific error.
When I try to do a ContactItem.Display False - I get an error saying that
the method failed.
 
Back
Top