Reporting: Repeating Blocks with Breaks and Without
Repeating blocks or merge blocks is a very flexible feature with Text Control Reporting. The content of a block is repeated based on the number of data rows that are passed to this block. Generally, you can repeat everything: A table row, a complete table, paragraphs or a single word. All break characters are repeated and applied automatically. To insert a new merge block in TX Text Control Words - the Text Control Reporting template designer - the following easy steps are required: Create a…

Repeating blocks or merge blocks is a very flexible feature with Text Control Reporting. The content of a block is repeated based on the number of data rows that are passed to this block. Generally, you can repeat everything: A table row, a complete table, paragraphs or a single word. All break characters are repeated and applied automatically.
To insert a new merge block in TX Text Control Words - the Text Control Reporting template designer - the following easy steps are required:
-
Create a paragraph, table or whatever you want to repeat and add some fields:
-
Select that part of the text that should belong to the repeating block and choose an available block from the Insert Merge Block drop-down button:
Consider the following block (between the two block markers) where product names should be listed in the same paragraph:

When merging this block, the products are repeated in inline:

When adding the CLRF ("carriage return line feed") control character to the block, a new paragraph is inserted for each block:

The resulting document is shown below:

Instead of a new paragraph after the block, you can also insert a page break, section break or column break that are applied automatically during the merge process.
Reporting
The Text Control Reporting Framework combines powerful reporting features with an easy-to-use, MS Word compatible word processor. Users can create documents and templates using ordinary Microsoft Word skills. The Reporting Framework is included in all .NET based TX Text Control products including ASP.NET, Windows Forms and WPF.
Related Posts
Creating Your First ASP.NET Reporting Application
This tutorial shows how to use the MailMerge component in an ASP.NET Web application to merge a template with data to create an Adobe PDF document.
New Online Sample: Build your First Report
We published a new online demo that shows how to create a report including preparing data, creating a template to merging them together.
ReportingDocumentationReportingCloud
Create your First Document with ReportingCloud
As part of our new ReportingCloud documentation, we published a guided tutorial that shows how to create a document without programming.
MailMerge: Starting Each Merge Block on a New Page
A merge block is repeated based on the number of matching data rows in the hierarchical data object. The complete merge block is cloned and inserted under the original location in the template.…
Using MailMerge with JSON Data
In the last article, we explained how to create an ASP.NET Web API to merge templates with JSON data in the payload body of an HTTP request. The focus of this article was on the Web API and…