Getting Mapped DocuShare Collection's item using redeption.dll

Joined
Sep 6, 2009
Messages
1
Reaction score
0
Hi,
I have Microsoft Outlook 2007 and DocuShare Client 6 on Windows XP machine. I have mapped
DocuShare server to my outlook so that I can browse docushare collections and items from
outlook.

I want to extract items of DocuShare collections just like that of outlook (mail, task,
calendar, note and etc) using Redemption dll. DocuShare collection is similar to folder
which holds other items like documents, discussions, links, weblogs and etc.

I can however successfully get DocuShare collections but not any item of it.
COM Exception occurs at line
object itemObject= items.GetFirst();
The details of exception are:

Message:
"Error in IMAPITable.QueryColumns: E_UNEXPECTED"

Source:
"Redemption.RDOItems"

Stack Trace:
" at Redemption.RDOItemsClass.GetFirst()\r\n at ExchangeTest.Program.Main(String[]
args) in D:\\Working\\RDO\\ExchangeTest\\ExchangeTest\\Program.cs:line 32\r\n at
System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)\r\n at
System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[]
args)\r\n at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()\r\n at
System.Threading.ThreadHelper.ThreadStart_Context(Object state)\r\n at
System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback
callback, Object state)\r\n at System.Threading.ThreadHelper.ThreadStart()"


Code:

static void Main(string[] args)
{
Microsoft.Office.Interop.Outlook.Application app = new
Microsoft.Office.Interop.Outlook.Application();
Microsoft.Office.Interop.Outlook.NameSpace ns = app.GetNamespace("MAPI");

Redemption.RDOSessionClass rdoSession = new Redemption.RDOSessionClass();
rdoSession.MAPIOBJECT = ns.MAPIOBJECT;

string entityIDDocu =
"0000000038A1BB1005E5101AA1BB08002B2A56C200006473636D732E646C6C0000000000AAAFAD245FC9AC45B
AD55DAF25D6DF4E010000006473636D732E7072700000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
000000000";

IRDOStore store = rdoSession.GetStoreFromID(entityIDDocu, Missing.Value);
IRDOFolder oFolder = store.IPMRootFolder;

// Gets Top Level Collections of Docushare
IRDOFolders oTopLevelFolders=oFolder.Folders;
foreach (IRDOFolder f in oTopLevelFolders)
{
Console.WriteLine(f.Name);
}

// Get items of Top Level Collection A
// index 1 to oTopLevelFolders points to Top Level Collection A
IRDOItems items = oTopLevelFolders[1].Items;

// This is the line where it thows COM Exception
object itemObject= items.GetFirst();

Console.Read();
}

Could you please help me downloading items of DocuShare collections using redemption.dll?
If any information is needed, please ask me :)

Thanks
Prakash
 
Back
Top