P
Peter Krikelis
Hi,
I am trying to automate the Outlook so that I can get all
new messages received and look at them.
I have added refference "Microsoft Outlook 10.0 Object
Library" and written code:
private Outlook.Application oApp;
private Outlook._NameSpace oNameSpace;
public OutlookMail()
{
oApp = new Outlook.Application();
oNameSpace = oApp.GetNamespace("MAPI");
}
And that the line: oNameSpace = oApp.GetNamespace("MAPI");
it says that Outlook.Application does not contain a
definition for "GetNamespace". It does not contain the
definition for the CreateItem that I used to create new
Outlook._MailItem item.
What might be the problem?
Thatks,
Peter
I am trying to automate the Outlook so that I can get all
new messages received and look at them.
I have added refference "Microsoft Outlook 10.0 Object
Library" and written code:
private Outlook.Application oApp;
private Outlook._NameSpace oNameSpace;
public OutlookMail()
{
oApp = new Outlook.Application();
oNameSpace = oApp.GetNamespace("MAPI");
}
And that the line: oNameSpace = oApp.GetNamespace("MAPI");
it says that Outlook.Application does not contain a
definition for "GetNamespace". It does not contain the
definition for the CreateItem that I used to create new
Outlook._MailItem item.
What might be the problem?
Thatks,
Peter