Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Worksite8, C# IntergrationDlg OpenDlg
System
Hi,
With the 3.0 SDK (filesite 4.0) we created a small VB app that logged on to the Server and displayed the iIntergrationDlg.OpenDlg, with some basic commands like open and check out. We found this useful for dialup laptop users, as it's faster than logging out and into Outlook.
For Worksite 8.0, I'm writing a new version of this with C#, and everything seems to be working, the dialog displays, the one commad i've added appears, but the Opendlg.DocumentList is being returned as an generic object, and I can't set it to be a IManage.IManDocuments collection.
Using QuickWatch, it appears to be a System.array of System.___ComObject, but there's nothing I can use to identify the relevant document, and C# doesn't like me trying to treat it like an array in any case.
Has anyone managed to use this with C#?
Thanks
Richard
Find more posts tagged with
Comments
jny
Since this property will return a System.Array, you would need to iterate through the elements in the array to set each IManDocument object (instead of setting the returned value as an IManDocuments collection). Like so:
Array arrRetDox = (Array)Opendlg.DocumentList;
int iCountOfDox = arrRetDox.Length; // A count of the returned documents.
IManDocument doc = null;
if (iCountOfDox > 0 )
{
foreach (IManDocument oIManDoc in arrRetDox)
{
doc = oIManDoc; // Do somthing with this IManDocument object.
}
}
Migrateduser
Cool, Works!
Thanks
This isn't life in the fast lane, it's life in the oncoming traffic.