General information
Title:
Cannot create an Outlook object
I'm getting a invalid cast error with the following code. Does anybody know how to a reference to Outlook's namespace?
Outlook.Application ol = new Outlook.Application();
Outlook.NameSpace ns = ol.GetNamespace("MAPI");
I'm running Office XP but have the old .NET. PIA is installed.
TIA, John
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only