We are running SSRS2005 and produce multiple reports.
Our users need history report data so we set up snapshots executions to run weekly.
How do we display the list of these historical snapshots to the users for selection?
Currently we code:
http://myserver/Reports/Pages/Report.aspx?ItemPath=/myreports/Available+Floor+Space&rs:Command=Render&SelectedTabId=SnapshotsTab
That is not preferred as the user is presented the Report Manager interface and can go use other functionality such as subscriptions etc... that we do not support.
Is there (a) a way to suppress the Report Manager controls? or (b)another way to list the snapshots executed given a report name( maybe by querying the report server database?) or (c) code http://myserver/Reportserver/?/myreports/Available+Floor+Space&rs:Command=Render&? to get the history listing?
Thanks
Hi,
The best way is to use Reporting Services Web Services.
You need to add a Web Reference to your Reporting Server and name it <ReferenceName>. Once it is setup you can call the web services using the <ReferenceName>.
In your class first you need to add the "using" statement....
using <NameSpace>.<ReferenceName>.
then in the code you can use...
ReportingService rs = new ReportingService();
rs.Credentials = <your credentials>;
ReportHistorySnapshot[] historySnapshotList = rs.ListReportHistory(<report name>);
Hope this will help you.
Thanks.
Hammad
No comments:
Post a Comment