SSRS DateTime Parameter in URL

我的未来我决定 提交于 2019-12-10 21:14:49

问题


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

  1. String - ssn
  2. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!