473,396 Members | 1,755 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

GetNamespace for Outlook

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.
Nov 15 '05 #1
1 2414
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

"Peter Krikelis" <pk*******@hotmail.com> wrote in message
news:03****************************@phx.gbl...
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.

Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Kurt | last post by:
Hi We are developing an off-the-shelf software suite for a certain business sector. Most of the program is simply a GUI on top of some .mdb files. Its a .net application written in c# One...
1
by: Peter Krikelis | last post by:
Hi, I want to read the mail from Outlook. And when I create an instance of an outlook application it does not have method "GetNamespace". I have referenced Microsoft Outlook 10.0 Object (Type...
10
by: John | last post by:
Hi When I open a new outlook email from vb.net, sometimes outlook is very slow to appear or occasionally outlook freezes completely. I am targeting mixed office2000/xp environments so I am...
9
by: Srinivas | last post by:
hi all how to access the outlook user profiles through VB.net any help.... thanks in advanc Srinivas
0
by: DraguVaso | last post by:
Hi, I have a VB.NET-application that has to open an email in Outlook. for this I have some VBA-code in a MSScriptControl. This works like always, but sometimes it thorws this error: "...
8
by: Li Pang | last post by:
Hi, I used following codes to pass a message item from CDO to Outlook. They worked fine when I used outlook 2000, but get an error of "Specified cast is not valid." when I used Outlook 2003....
4
by: Brian Hampson | last post by:
I recently upgraded to Outlook 2007 B2TR and have found that I can no longer code against MAPI.DLL It's gone :( Using C#, I used to get the MAPI session, and from that I could change the out of...
9
by: ARC | last post by:
In case anyone has ran into this yet. The following code used to work with older versions of the MS Outlook library, but would error out in 2007: Dim objOutlook As Outlook.Application Dim...
5
by: fniles | last post by:
I am using VB.NET 2005. I created a project using the Microsoft Outlook 8.0 Object Library (Object Model) in my previous machine. Now that I have a new machine, when I try to compile that program...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.