GetNamespace for Outlook

  • Thread starter Thread starter Peter Krikelis
  • Start date Start date
P

Peter Krikelis

Hi,

I have referenced Microsoft Outlook 10.0 (type lib version
9.1). I am trying to automate Outlook so that I can read
new mail. I have creates an instance of the outlook
application and I am trying to get the namespace by
using "myAppl.GetNamespace("MAPI") but it gives me an
error saying that such method was not found. The same
error I get for CreateItem().

I checked the reference and there are no such methods
there.

What should I do, or where to get them.

Thanks,

Peter.
 
Peter,
For a number of articles on using Outlook from .NET see:

http://www.microeye.com/resources/res_outlookvsnet.htm

Which includes a number of examples of using GetNamespace, from VB.NET. The
same technique
works from C# equally well!

For example:
http://support.microsoft.com/?kbid=313802

Can you post the specific code you have that does not seem to be working?

Do you have the Outlook XP PIA installed? You can find the Outlook PIA at
the above site.

Hope this helps
Jay
 
Back
Top