Now you can add SubReport element to DBReport.
Sometimes i need print info what are no easy to set in one recordset, so i need various recordsets and “adding” to a report, that is the SubReports are useful.
First, create a report which is a template for a report parent, is not required but is recommendable. Normally just contains a “Detail” band, however you can add bands, save as a normal report definition file.
On a Report, drag’n drop SubReport element to a band, the object assume all band area, but you can change the size; the height is automatically expand as needed when is printed.
At last, you set the recordset before call “Designer”, “print” or “preview”, with this code:
The “NameOfSubreport” must be same as SubReport Name and element Name.
See video here.
Review the issue tracker at: https://bitbucket.org/lbmonsalve/dbreport/issues
Thanks and have a nice code!