问题
I am passing the following URL in order to load a report in SSRS. There are two parameters in the report:
http://servername/Reports/Pages/Report.aspx?ItemPath=%2fReports%2fApplications%2fPersonnel%2fRptNameChange&ssn=#########&txtEffectiveDate=06/01/2012
Parameters
- String - ssn
- DateTime - txtEffectiveDate
However, when the page loads, it is as if the parameters are not recognized and it loads the page with empty fields in the parameters.
What is missing or incorrect about the URL? Thanks!
回答1:
You're so close! You should be able to pull this off by changing Report.aspx to ReportViewer.aspx. For example, see below:
http://servername/Pages/**ReportViewer.aspx?**ItemPath=%2fReports%2fApplications%2fPersonnel%2fRptNameChange&ssn=#########&txtEffectiveDate=06/01/2012
回答2:
I was calling the Report Manager URL, instead of the Web Service URL.
Here was the working version of the SSRS Url:
http://servername/ReportServer?/Folder1/Folder2/Folder3/
In order to complete the call to the SSRS Web Service Url, attach the report name and any parameters that are needed to run the report:
http://servername/ReportServer?/Folder1/Folder2/Folder3/ReportName&Param1=12345
来源:https://stackoverflow.com/questions/11235302/ssrs-datetime-parameter-in-url