Tables Uncovered: Using Table Headers in Your Reports
When it comes to sales sheets, product lists or any other type of business reports, using tables is always suitable to arrange large amounts of data. A table header defines names or meanings of displayed table columns. This header can be repeated automatically when: the table is wrapped to a new page or the table is wrapped to a new page column. The following steps show how to use the template designer TX Text Control Words and the shipped sample database to insert a repeating block with a…

When it comes to sales sheets, product lists or any other type of business reports, using tables is always suitable to arrange large amounts of data. A table header defines names or meanings of displayed table columns. This header can be repeated automatically when:
- the table is wrapped to a new page or
- the table is wrapped to a new page column.
The following steps show how to use the template designer TX Text Control Words and the shipped sample database to insert a repeating block with a table header.
-
Open TX Text Control Words and choose Load Sample Database from the Select Data Source drop-down button in the Mailings ribbon tab.
-
Open the Insert Merge Block drop-down button and select Sales_SalesOrderDetail from the available tables.
-
In the opened dialog, choose the columns you would like to add to the table and make sure that the checkbox Add table header row is checked.
After confirming with OK, the following table is inserted into the template:
TX Text Control doesn't only support one table header row, but n table rows that are repeated automatically. So, let's add an additional row above the already existing one.
-
Set the input position into the first cell of the table and choose Insert Above from the Rows & Columns group of the Table Tools contextual ribbon tab.
-
By adding a new row, the row at the current input position is cloned and the format and settings are applied automatically, so that the new row is part of the table header. You can verify this setting by opening the table properties dialog. Set the input position into the newly inserted row and choose Properties from the Table group.
In the second tab page of the opened dialog box, the Repeat as header row at the top of each page setting is checked.
-
For cosmetic reasons, let's add some formatting to the new header row. Close the dialog, select the whole row and choose Merge Cells from the Merge group. Add some text to the cell, center it and apply some formatting:
Now it is time to test this merge block.
-
Open the Mailings tab again and choose Sales_SalesOrderDetail from the Select Master Table drop-down button.
-
Finally, click on Preview Merge Fields to start the merge process. The following screenshot shows the automatically repeated table header on a new page:
Try it on your own and download a trial version of TX Text Control today.
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…