Outlook ContactItem.Display and .NET

  • Thread starter Michael Tissington
  • 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?
 
M

Michael Tissington

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.
 

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