How to display a report that contains a subreport by using the ReportViewer control in Visual Studio 2005 (919157)
The information in this article applies to:
- Microsoft SQL Server 2005 Reporting Services
SUMMARYIn Microsoft Visual Studio 2005, you cannot directly display a report that contains a subreport by using the ReportViewer control in your application. When you try to display the report, you may receive the following error message: Error: Subreport could not be shown
Additionally, you will receive the following warning message in the Visual Studio 2005 Output window: Warning: An error occurred while executing the subreport
'subreport1': An error has occurred during report processing.
(rsErrorExecutingSubreport)
This issue occurs when all the following conditions are true: - You try to show a report by using the ReportViewer control in your application.
- The report contains a subreport.
- The processing mode of the ReportViewer control is set to Local.
However, you can display the report by adding an event handler for the SubreportProcessing event of the ReportViewer control. Then, manually set the data source for the report in the event handler process. This article describes how to display a report that contains a subreport by using the ReportViewer control. REFERENCESFor more information about the ReportViewer control, visit the following MSDN Web site:
Modification Type: | Major | Last Reviewed: | 5/31/2006 |
---|
Keywords: | kbhowto kbExpertiseAdvanced kbsql2005bi kbsql2005rs kbinfo KB919157 kbAudDeveloper kbAudITPRO |
---|
|