Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot create an Outlook object
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00830742
Message ID:
00830940
Vues:
16
Hi John,

Refer to the following KB article to see if it resolves your error:

http://support.microsoft.com/default.aspx?scid=kb;en-us;309336&Product=ol2002


>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
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform