【问题标题】:SSRS report fails to render via URL access unless View Report is clicked除非单击查看报告,否则 SSRS 报告无法通过 URL 访问呈现
【发布时间】:2014-04-15 18:08:14
【问题描述】:

我的 SSRS 报告的超链接正确呈现了在 URL 查询字符串中传递的参数。但除非单击“查看报告”按钮,否则不会呈现报告。其他报告按预期呈现,所以我怀疑问题报告的 URL 有问题:

http://reportserver/ReportServer/Pages/ReportViewer.aspx?%2fSales+Mgr+Reports%2fCustomer+Product+Variance+with+Net+Margin+Report&rs:Format=HTML4.0&rs:Command=Render&ReportType=PD&SortType=P&CurBeginDate=04/15/2013&CurEndDate=04/15/2014&CusCode=XXXXXXXXXX

该 URL 正确填写了报告所需的参数:

为什么即使我已包含命令 rs:Command=Render,此报告仍无法呈现?

提前致谢。

【问题讨论】:

    标签: asp.net reporting-services rendering ssrs-2012


    【解决方案1】:

    没关系...我想通了。其他人可能会受益...

    查询字符串中不能省略空白参数。 两个空白参数框(产品描述和产品 ID)必须不带值传入才能使渲染命令起作用。即使运行报告不需要这些参数,这似乎也是必要的。

    所以工作查询字符串的末尾添加了两个(空白)参数,如下所示:

    http://reportserver/ReportServer/Pages/ReportViewer.aspx?%2fSales+Mgr+Reports%2fCustomer+Product+Variance+with+Net+Margin+Report&rs:Command=Render&rs:Format=HTML4.0&ReportType=PD&SortType=P&CurBeginDate=04/15/2013&CurEndDate=04/15/2014&CusCode=XXXXXXXXXX&ProdDesc=&ProdID=
    

    【讨论】:

      猜你喜欢
      • 2018-12-18
      • 2014-07-22
      • 2013-03-19
      • 1970-01-01
      • 2013-06-06
      • 2012-06-13
      • 1970-01-01
      • 2013-06-24
      相关资源
      最近更新 更多