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.Applica tion oApp;
private Outlook._NameSp ace oNameSpace;
public OutlookMail()
{
oApp = new Outlook.Applica tion();
oNameSpace = oApp.GetNamespa ce("MAPI");
}
And that the line: oNameSpace = oApp.GetNamespa ce("MAPI");
it says that Outlook.Applica tion does not contain a
definition for "GetNamespa ce". It does not contain the
definition for the CreateItem that I used to create new
Outlook._MailIt em 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.Applica tion oApp;
private Outlook._NameSp ace oNameSpace;
public OutlookMail()
{
oApp = new Outlook.Applica tion();
oNameSpace = oApp.GetNamespa ce("MAPI");
}
And that the line: oNameSpace = oApp.GetNamespa ce("MAPI");
it says that Outlook.Applica tion does not contain a
definition for "GetNamespa ce". It does not contain the
definition for the CreateItem that I used to create new
Outlook._MailIt em item.
What might be the problem?
Thatks,
Peter
Comment