Table design
Create a banded report table
The template contains two differently styled rows. Merge the product data to repeat that pattern across the complete report.
Understand the current template
Explore its merge fields, repeating blocks, and nested structure in an interactive template map.
Ready to tryUse the controls above to interact with this demo.
What this demonstrates
Keep presentation in the template
The merge block spans two table rows with the same fields but different background colors. A NEXT field at the end of the first row advances the data record inside the repeated pattern.
Application code supplies ordinary JSON. Row colors, typography, widths, and spacing remain editable in the Word-compatible template.
API used
MailMerge.MergeJsonData
How it works
MailMerge expands the two-row block until the matching data array is exhausted. The template's NEXT field makes the second row use the following data record.