Wednesday, 4 March 2015

Sub Reports


1   2   3   4   5   6   7   8   9   10   11   12   13   14   15   16   17


    A main report that is a container for multiple related reports is called sub report.

Example:
The Above two report i will call into a new report.
  • 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