SSRS 钻取服务器报告错误
我有一份 SSRS 报告,其中包含对文本框的操作。 转到报表属性设置为父报表,因此这使得父报表本身也是钻取报表。 我在报表服务器上部署了报表,它呈现正常,钻取操作在报表管理器中也正常工作。
当我将此报表附加到 .aspx 中的 ReportViewer 控件时,父报表呈现正常,但钻取操作会导致错误(参数无效)。
我有此报告的 2 个可见参数和 3 个隐藏参数。
我尝试覆盖 ReportViewerCtrl_Drillthrough 事件并添加以下代码:
ReportViewerCtrl.ServerReport.SetParameters(reportParamList);
ReportViewerCtrl.ServerReport.Refresh();
其中 reportParamList 是从父报表传递到钻取报表的参数列表,但我收到相同的错误(我使用 DrillthroughEventArgs.Report.GetParameters() 来获取以下列表:参数并且它们以正确的方式传递)。
我在其他论坛上没有找到与服务器报告上部署的报告相关的类似内容(仅适用于本地报告)。
任何想法将不胜感激!
I have a SSRS report with an action on a text-box.
Go to report property is set to the parent report so this makes the parent report also a drillthrough report for itself.
I deployed the report on the report server and it is rendered ok and also the drillthrough action works ok in the Report Manager.
When I attach this report to a ReportViewer control in an .aspx the parent report is rendered ok but the drillthrough action causes an error (Invalid argument).
I have 2 visible and 3 hidden parameters for this report.
I tried to override the ReportViewerCtrl_Drillthrough event and added the following code:
ReportViewerCtrl.ServerReport.SetParameters(reportParamList);
ReportViewerCtrl.ServerReport.Refresh();
where reportParamList is a list of parameters passed from the parent report to the drillthrough report but I get the same error (I used DrillthroughEventArgs.Report.GetParameters() to get the list of parameters and they're passed by in a correct way).
I didn't find on other forums something like this related to reports deployed on Server Report (only for local report).
Any idea would be very much appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我已经找到了这个问题。
这与 .aspx 页面的构建方式有关。
我的报表查看器控件由表单标签构成,但看起来它也需要一个表标签。
这就是我的 .aspx 页面现在的样子:
表
tr
TD
表格
报表查看器控件
/表格
/TD
/tr
/桌子
I have found the issue for this.
It was related to the way .aspx page was built.
My report viewer control was framed by a form tag but it appears it also needed a table tag too.
So this is how my .aspx page looks now:
table
tr
td
form
ReportViewer Control
/form
/td
/tr
/table