SSRS 2008 R2 Drill Down On-Demand to Sub Report

此生再无相见时 提交于 2019-12-01 19:34:47

问题


In SSRS 2008 R2, I was under the impression that a drill down to a sub-report would query the data on-demand. This isn't the case when my report gets rendered.

Specifically, I have a Tablix that initially loads rows grouped by Person. When someone clicks the drilldown icon on that Person, a subreport displays some more data pertinent to that Person. The problem here is that every subreport is being loaded initially when the main report is being rendered. This takes forever to load. But if I remove the subreport, just for testing purposes, the report loads almost instantly.

I've tried setting the visibility of the subreport to Hide initially, then Show when the user drills down, but it didn't change anything.

I read a similar question on stackoverflow, but the answer was to use Drill-Throughs instead. This unfortunately isn't an option in my case.

Any suggestions?


回答1:


The only way to defer the data loading is to actually use a new report with and access it via Drill-Through method. This is the way to product work, and is the way inteded by Microsoft.

You can either optimize your stored procedure, limit the number of results per page or use drill-through.



来源:https://stackoverflow.com/questions/11472009/ssrs-2008-r2-drill-down-on-demand-to-sub-report

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