Click here to Skip to main content
15,879,326 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When I execute the report from Report Manager the subreport opens.
When I execute the same report and subreport through asp.net website the report is seen but subreport does not open and the screen still displays the main report only.

The subreport should open on click of hyperlink in main report.

Do we need to enable any parameter of reportviewer?

Whats the C# code in ReportViewer page to call Subreport
Posted
Updated 18-Nov-10 1:09am
v5
Comments
Dalek Dave 18-Nov-10 4:21am    
Edited for Readability.

1 solution

If your sub-report is expecting some parameters then you need to pass them through Main report. Until unless all the expected parameters are not shown it would not display the subreport.

Further, in SSRS if the subreport has no data then the place is left blank (default behavior). You can either change it to show some default text using subreport properties or have a custom labels in subreport whose visibility toggles based on if any data fetched.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900