Hi All,

Can someone give me sample code in C# how to retrieve Document?
i could not access document information (like name, subject, MIME type, etc..). here is my sample code (the 'acct' is Account authenticated).

GroupwareTypeLibrary.Account acct = null;
DocumentLibraries docs = null;
docs = acct.DocumentLibraries;
Response.Write("<br/>" + docs.Count.ToString() + "<br/>");
for (int i = 1; i <= docs.Count; i++)
{
DocumentLibrary docLib = null;
DocumentType dt = null;
DocumentVersion dv = null;
Document docc = null;
Documents doccs = null;
try
{
docLib = docs.Item(i);
Response.Write("<br/>" + docLib.Name + "<br/>");
doccs = docLib.Documents;
//docc = docLib.GetDocument(2);
Response.Write("<br/>" + docLib.Name + "----" + docc.DocumentType.Name + "<br/>");
}
finally
{
ReleaseAndNull(ref docLib);
ReleaseAndNull(ref docc);
ReleaseAndNull(ref doccs);
ReleaseAndNull(ref dt);
ReleaseAndNull(ref dv);
}
}


Thanks,