ReportViewer - 访问服务器端asp.net中的子报表/钻取

时间:2021-07-26 07:17:01

When using the ReportViewer control in an aspx page. If you fire an event (such as clicking a row) which then displays a sub/drillthough report...How can you access that Report object on the server side?

在aspx页面中使用ReportViewer控件时。如果您触发事件(例如单击一行),然后显示子/钻取报告...如何在服务器端访问该Report对象?

There is a DrillThough event for the parent report object that gets fired...but it doesn't seem to have any access to the new report OR what values are being passed to the sub/drillthrough report.

父报告对象的DrillThough事件被触发...但它似乎没有对新报告的任何访问权限或者传递给子/钻取报告的值。

Further, when the page reloads (postback) and the sub-report is displayed, I'm not even sure how to access the sub/drillthrough report during the page_load event...as you can't seem to access it through the parent reportviewer...

此外,当页面重新加载(回发)并显示子报告时,我甚至不确定如何在page_load事件期间访问子/钻取报告......因为您似乎无法通过父级访问它的ReportViewer ...

I'm using the 2008 ReportViewer object

我正在使用2008 ReportViewer对象

1 个解决方案

#1


0  

I was able to access the report using the DrillThroughEventArgs in the Report Controls DrillThrough event...

我能够使用Report Controls DrillThrough事件中的DrillThroughEventArgs访问报告...

#1


0  

I was able to access the report using the DrillThroughEventArgs in the Report Controls DrillThrough event...

我能够使用Report Controls DrillThrough事件中的DrillThroughEventArgs访问报告...