PC Review


Reply
Thread Tools Rate Thread

Outlook ContactItem.Display and .NET

 
 
Michael Tissington
Guest
Posts: n/a
 
      8th Apr 2005
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?


--
Michael Tissington
http://www.oaklodge.com
http://www.tabtag.com



 
Reply With Quote
 
 
 
 
Crouchie1998
Guest
Posts: n/a
 
 
Reply With Quote
 
 
 
 
Michael Tissington
Guest
Posts: n/a
 
      8th Apr 2005
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.

--
Michael Tissington
http://www.oaklodge.com
http://www.tabtag.com


"Crouchie1998" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Have a look at these articles:
>
> http://support.microsoft.com/kb/293152/
>
> http://support.microsoft.com/default...b;en-us;313802
>
> http://support.microsoft.com/default...b;en-us;313799
>
> http://support.microsoft.com/default...n-us;313800#6f
>
> PIA's:
>
> (Page)
>
> http://www.microsoft.com/downloads/d...displaylang=en
>
> (Direct Link)
>
> http://download.microsoft.com/downlo...235/oxppia.exe
>
> I hope the above helps
>
> Crouchie1998
> BA (HONS) MCP MCSE
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook PST Date--Use with Outlook 2000 and Outlook 2003 MedRxman Microsoft Outlook 1 7th Sep 2006 10:57 PM
Installing Outlook on computer with Outlook Live and Outlook conne =?Utf-8?B?dGlmZmFueQ==?= Microsoft Outlook Installation 1 16th Sep 2005 08:45 PM
combine outlook and outlook express into outlook =?Utf-8?B?VEFX?= Microsoft Outlook Discussion 2 2nd Oct 2004 09:55 PM
Rules in Outlook 2002 vs Outlook 2000 and Outlook 2003 =?Utf-8?B?SmltYm8=?= Microsoft Outlook Discussion 0 21st Sep 2004 06:53 PM
Outlook 2002 crashes over and over and over and over and over and over typoo Microsoft Outlook Discussion 5 7th Mar 2004 08:12 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:53 PM.