Subreports

Top  Previous  Next

Sometimes at a certain place of the main report, extra data needs to be shown, this can be a separate report with a very complicated structure. You can try to solve this task by using FastReport's rich collection of bands. However, in certain cases, it is preferable to use the "Subreport" object.

 

The "Subreport" object is an ordinary report object, which can be placed on one of the bands. When you do this, FastReport adds an extra page into the report and connects it with the subreport. On this page it is possible to create an extra report, having any structure.

 

When printing the report, in which there is the "Subreport" object, the following will be done:

 

1.The main report will be printed, while the "Subreport" object is not met;
2.The subreport bands will be printed;
3.Printing of the main report will continue.

 

Since subreport is formed on the sheet of the main report, it cannot contain the following bands: "Report header/footer", "Page header/footer", "Column header/footer", "Overlay".