A main report that is a container for multiple related reports is called sub report.
Example:
- Report1: MultivaluedParameters.
- Report2: DeptReport
- In the Same solution add a new report with the name "SubReport".
- Right click on Parameters.
- Select "Add Parameters.." then "Report Parameter Properties" will open.
- Give the required names (Highlighted in the above screen). Then click on "OK" button.
- In "Design" Window: Right click and select 'Insert => Subreport.
- Then Sub report will insert.
- Right click on the "Subreport" and select "Subreport Properties".
- Then "Subreport Properties" window will open.
- Name: Give the required name (DepartmentReport).
- Use this report as a subreport: Select the required report (DeptReport) from the drop-down list.
- Go to 'Parameters' section.
- Click on 'Add' button, then 'Name and Value' will enable. Then give the parameter details and then click on "OK" button.
- One sub report (DeptReport) is added. Same way Add second report (MultivaluedParameters).
- Go preview section and give the parameter value, and then click on "View Report" button. then report will generate.
No comments:
Post a Comment