I'm just trying to get a list of all the folders that resides on a sql server running re开发者_Go百科porting services. I'm using the web service ReportingServices
Try this:
var rs = new ReportingService2005SoapClient();
CatalogItem[] reports;
string reportPath = "/ReportPath";
rs.ListChildren(reportPath, true, out reports);
foreach (var report in reports)
{
if (report.Type == ItemTypeEnum.Folder)
{
// Do something
}
}
精彩评论