问题描述
我有一份包含六个子报告的 SSRS 报告.子报表使用与主报表相同的共享数据源.
I have a SSRS Report with six sub-reports. The sub-reports are using the same shared data source which the main report is using.
当我部署报表并执行时,子报表占位符显示错误:报表无法显示.
When I deploy the report and execute, the sub-report place holder shows error: Report cannot be shown.
我认为这可能是由于共享数据源.因此,我为每个子报表创建了单独的共享数据源.这有效.报告开始显示所有结果.
I thought it could be due to shared data source. Therefore, I created separate shared data source for each sub-report. This works. The report starts showing all the results.
请告诉我这是什么问题.即使它有效,我也不想为每个子报表创建单独的共享数据源.
Please let me know what is this issue. Even though it works, I don't want to create separate shared data source for each sub report.
推荐答案
这是 SSRS 2008 中的一个已知缺陷.我不确定它是否已被修补,但已在 SSRS 2012 中修复.
This is a known defect in SSRS 2008. I'm not sure if it has been patched yet, but it has been fixed in SSRS 2012.
如您所见,解决方法是使用单独的数据集.
As you have found, the workaround is to use separate datasets.
这篇关于子报告给出错误:报告无法显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!