6.7.4 Subreports
A subreport is a report that is embedded inside another report. The subreport can only be embedded within a section element, and is displayed within this section band when the report is generated. Because a section band is repeated for every row in the query that the section is bound to, the subreport is also repeated as part of the band repetition.
A subreport is often used to present detail information for a band. For example, if a section is showing the product sales summary, the subreport could be used to present the sales details. This means a subreport needs to accept parameters from the band, so each subreport would present different information when it is repeated.
To design a subreport, follow the general steps below:
Note: Report paper size is ignored when a report is printed inside another report as a subreport.
1. Design the report that will be used as the subreport. If desired, a report bean can also be used as a subreport. See Walkthrough: Designing the Subreport.
2. Design the master report.
3. Embed the subreport within a Section in the master report. See Walkthrough: Embedding the Subreport.
4. Define the parameter links from the Section band to the subreport.
In general, do not use headers, footers, or decorative elements in subreports.
| << 6.7.3 Running Total | © 1996-2013 InetSoft Technology Corporation (v11.5) | Walkthrough: Designing the Subreport >> |