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.
* 
For more information on how to create the mail merge definition and template file, refer to Creating mail merge definition and a template file.
The following example is a catering confirmation with a subreport on the order lines that have been created.
Report hierarchy
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.
Report example