Products Technologies Demo Docs Blog Support Company

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…

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 paragraph, table or whatever you want to repeat and add some fields:

    Create a merge block
  • 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:

    Create a merge block

Consider the following block (between the two block markers) where product names should be listed in the same paragraph:

Reporting: Repeating blocks with breaks and without

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

Reporting: Repeating blocks with breaks and without

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

Reporting: Repeating blocks with breaks and without

The resulting document is shown below:

Reporting: Repeating blocks with breaks and without

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.

Stay in the loop!

Subscribe to the newsletter to receive the latest updates.

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.

See Reporting products

Related Posts

ASP.NETReportingHTML5

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.


ASP.NETReportingTutorial

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.


CloudReportingMail Merge

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.…


ReportingTutorialWeb API

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…