I can't get this thing to work. I'm trying to export contacts to a
specific folder in Outlook but I can't get the folder. I have several
examples on how to do it by there is one function that don't seem to
exist.
Here is a sample code:
Outlook._Application olApp = new Outlook.ApplicationClass();
Outlook._NameSpace olNS = olApp.GetNamespace("MAPI");Outlook._Folders
oFolders;
oFolders = olNS.Folders;
Outlook.MAPIFolder oPublicFolder = oFolders.Item("Public Folders");
The problem is that oFolder.Item function doesn't exist. When I run the
program I get
".Office.Interop.Outlook._Folders' does not contain a definition"
Is that code to an earlier version of the MS 11.0 OL ? If that is the
case, how do I do it now? I've did an almost 100 % scan of the internet
but I've found nothing. Maybe somone got a working code for saving a
contact in "Public Folders/xxx".
Please help me.
Enviroment: Visual Studio 2005
Referenced: Microsoft Outlook 11.0 Object Library (v 9.2)
Language: C#