简体   繁体   English

获取SSRS的报告列表?

[英]Get list of reports from SSRS?

I've just started working with SSRS and so far I've been able to show reports in my Winforms app using the ReportViewer, by hard-coding the report path. 我刚刚开始使用SSRS,到目前为止,我已经能够使用ReportViewer在我的Winforms应用程序中显示报告,通过硬编码报告路径。 I would like get a list of reports from SSRS so I can display them and let the user select which one they want to see. 我想从SSRS获取一份报告列表,这样我就可以显示它们并让用户选择他们想要查看的报告。

Is there a way to request the list of reports from SSRS? 有没有办法要求SSRS报告清单? Thanks. 谢谢。

Yes, absolutely - Report Services has two well established web service interfaces. 是的,绝对 - Report Services有两个完善的Web服务接口。

Check out this page here: Report Server Web Service and the links off it for more info, or see the Reporting Services Developer's Guide for some background and conceptual info. 在此处查看此页面: 报告服务器Web服务及其链接以获取更多信息,或者参阅Reporting Services Developer's Guide以获取一些背景和概念信息。

Here's the definition of the ReportingService2005 class in all its details, specifically there's a ListChildren web call which enumerates all items in a given report folder. 以下是ReportingService2005类的所有详细信息的定义,特别是有一个ListChildren Web调用,它枚举给定报表文件夹中的所有项目。 That will return all reports (and possibly data sources) 这将返回所有报告(可能还有数据源)

Hope that helps a bit! 希望那有所帮助!

use ReportServer go 使用ReportServer go

select Path, Name from catalog where type not in (1,5) order by path, Name 从目录中选择路径,名称,其中类型不在(1,5)中按路径排序,名称

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM