WOP*_*OPR 12 c# api reporting-services
我试图用c#枚举用户报告服务的报告.
我该怎么做呢?是否有我应该使用的Web服务调用,或者我应该从http://localhost/ReportServer/lists.asmx返回html 并将其分开?
第二个选项听起来有点像黑客.当然有更好的方法吗?
Gle*_*ven 29
SSRS有一个完整的SOAP API,您可以在此处查看信息:http://technet.microsoft.com/en-us/library/ms155376.aspx
从上面的文章:
// Create a Web service proxy object and set credentials
ReportingService2005 rs = new ReportingService2005();
rs.Credentials = System.Net.CredentialCache.DefaultCredentials;
// Return a list of catalog items in the report server database
CatalogItem[] items = rs.ListChildren("/", true);
// For each report, display the path of the report in a Listbox
foreach(CatalogItem ci in items)
{
if (ci.Type == ItemTypeEnum.Report)
catalogListBox.Items.Add(ci.Path);
}
Run Code Online (Sandbox Code Playgroud)
那里也有一个完整的教程:http://technet.microsoft.com/en-us/library/ms169926.aspx
| 归档时间: |
|
| 查看次数: |
20264 次 |
| 最近记录: |