C
cro
I am trying to access a sharepoint Calendar event list but can not seem to
access the SharePoint Lists.pst.
Here is what I got on C#.
// Create an Outlook application.
Outlook._Application olApp = new
Outlook.ApplicationClass();
// Get the Mapi NameSpace and the Logon.
Outlook._NameSpace olNs = olApp.GetNamespace("MAPI");
olNs.Logon("YourValidProfile", Missing.Value, false,
true);
Outlook.MAPIFolder oFolder = null;
string cro =
"http://infoadm.com/sites/infoquality/Lists/MDB Data Activity
Calendar/calendar.aspx";
oFolder = olNs.OpenSharedFolder(cro,null,null,null);
// oFolder.Display
Console.WriteLine("WTF: " + oFolder.Name);
When I run the program I get this error,
System.Runtime.InteropServices.COMException (0x80020009): Invalid shared
folder.
at
Microsoft.Office.Interop.Outlook.NameSpaceClass.OpenSharedFolder(String Path,
Object Name, Object DownloadAttachments, Object UseTTL)
at OutlookExamples.OutlookClass1.Main(String[] args) Exception caught.
I can access and list my default Calendar but am stuck on how to access a
sharepoint calendar. Does anyone know how to use the "openShareFolder" I
have had no luck finding any refernence to this new method in Outlook 2007.
Thanks
-cro
access the SharePoint Lists.pst.
Here is what I got on C#.
// Create an Outlook application.
Outlook._Application olApp = new
Outlook.ApplicationClass();
// Get the Mapi NameSpace and the Logon.
Outlook._NameSpace olNs = olApp.GetNamespace("MAPI");
olNs.Logon("YourValidProfile", Missing.Value, false,
true);
Outlook.MAPIFolder oFolder = null;
string cro =
"http://infoadm.com/sites/infoquality/Lists/MDB Data Activity
Calendar/calendar.aspx";
oFolder = olNs.OpenSharedFolder(cro,null,null,null);
// oFolder.Display
Console.WriteLine("WTF: " + oFolder.Name);
When I run the program I get this error,
System.Runtime.InteropServices.COMException (0x80020009): Invalid shared
folder.
at
Microsoft.Office.Interop.Outlook.NameSpaceClass.OpenSharedFolder(String Path,
Object Name, Object DownloadAttachments, Object UseTTL)
at OutlookExamples.OutlookClass1.Main(String[] args) Exception caught.
I can access and list my default Calendar but am stuck on how to access a
sharepoint calendar. Does anyone know how to use the "openShareFolder" I
have had no luck finding any refernence to this new method in Outlook 2007.
Thanks
-cro