Subreports in a mail merge report
It is possible to include subreports in mail merge definitions. The procedure is similar to including subreport(s) in a regular report definition, as described in
To include sub reports in your report definition.
The following example is a catering confirmation with a subreport on the order lines that have been created.
The template file should contain the subreport name in square brackets: [Order lines].
Report Generator will replace the subreport tag with a table listing the fields of the subreport in columns. This works for both HTML and Word templates.