Products Technologies Demo Docs Blog Support Company

Flow Type Layout Reporting Series: Using Repeating Blocks

Repeating blocks in TX Text Control handle master-detail relationships by cloning formatted content for each data row. This tutorial walks through inserting a merge block from an Excel source and configuring BlockStart and BlockEnd bookmark naming for the MailMerge class.

Flow Type Layout Reporting Series: Using Repeating Blocks
Blog Series: Flow Type Layout Reporting

Creating powerful hierarchical reports is the strength of TX Text Control. Nested repeating blocks with master-detail relationship views can be easily inserted. It doesn't matter what's repeated in the block: A table row, paragraphs, images or text frames. There are no limits.

Thanks to the powerful, but easy-to-use designer, you can easily add a repeating block into your template.

The following tutorial shows how to use the sample address.xlsx database to insert a repeating block.

  1. Open TX Text Control Words and open the sample database like described in this tutorial from step 1 to 3.

  2. Click the Insert Merge Block drop-down button to open the list of available tables. Select Addresses$ from the list.

    Using repeating blocks

    In the opened dialog box, select the columns you would like to include in the data and select Table Row as the presentation form.

    Using repeating blocks

    TX Text Control Words automatically inserts a table row with the required bookmarks to define the beginning and the end of a repeating block.

    Using repeating blocks

    The bookmarks have a special naming, so that TX Text Control's MailMerge class can find the blocks and connected data. The start bookmark begins with BlockStart_ + the name of the merge block. Sample: BlockStart_Addresses$. The same is valid for the end bookmark: BlockEnd_Addresses$

  3. You can apply some formatting to the text and the table. The whole block is cloned including it's formatting and style.

    Using repeating blocks

  4. Finally, click the Preview button in the Mailings ribbon tab. The report is previewed based on the connected data source.

    Using repeating blocks

Stay in the loop!

Subscribe to the newsletter to receive the latest updates.

Related Posts

Windows FormsGetting StartedTutorial

Windows Forms Tutorial: Create Your First Windows Forms C# Application

This tutorial shows how to create your first Windows Forms application with C# using TX Text Control .NET for Windows Forms in Visual Studio 2022.


ASP.NETASP.NET CoreMailMerge

How to Mail Merge MS Word DOCX Documents in ASP.NET Core C#

Mail merge is the process of merging data, such as Json or IEnumerable objects, into a template document, such as a DOC or DOCX file. This tutorial is a walkthrough of the steps necessary to…


AngularDocument EditorNode.js

Creating an Angular Document Editor Application with a Node.js WebSocket Server

This tutorial shows how to create an Angular application that uses the Document Editor with a Node.js WebSocket server.


ASP.NETASP.NET CoreMailMerge

Adding SVG Watermarks to Documents

This article shows how to add SVG images to document section headers that repeat automatically on each page. This watermark will be inserted vertically and horizontally centered on each section page.


ASP.NETASP.NET CoreMailMerge

Using MailMerge in ASP.NET Core 6 Web Applications

This article shows how to use the TX Text Control ASP.NET MailMerge class to merge templates with JSON data within a .NET 6 application in Visual Studio 2022.

Share on this blog post on: