Blog Series: Flow Type Layout Reporting

In this tutorial, you will learn how to create a simple template for a typical mail merge letter. This template consists of static text, the current date and the addressed person. A sample database and the final template is available for review.

  1. In a first step, open the template designer TX Text Control Words. This application is your designer to create, modify or test your templates for the TX Text Control reporting classes.

  2. In the Mailings tab, choose Select Data Source.

    Open a data source

    This tutorial shows how to use an Excel file as the data source. You could use all types of databases for your reports.

    In the opened database connection wizard, choose Microsoft ODBC Data Source as the Data source and confirm with OK.

    Open a data source

    Select Use connection string as the Data source specification and click the Build... button.

    Open a data source

    In the second tab page of the following dialog, select Excel from the list of available Machine Data Sources and confirm with OK.

    Open a data source

    Choose the sample Excel file address.xlsx and confirm with OK.

    Open a data source

    Close the underlying dialog as well by clicking OK.

  3. Open the drop-down button Select Table and select the table Addresses$.

    Open a data source

  4. Now start to insert the address fields into the template by choosing them from the Insert Merge Field drop-down button.

    Open a data source

    Start with the firstname and add a space after the field. After that, add the field name to the template. Insert a new line by pressing Enter and repeat the above steps for the street, city and country. The document should look like this:

    Open a data source

  5. In order to insert the current date, add some blank lines and choose Date from the Insert Special Field drop-down button.

    Open a data source

    Choose the desired format of the date field such as dddd, d. MMMM yyyy and confirm with OK.

    Open a data source

  6. In the last step, you could add some additional text and apply some formatting to the text and fields. The final template could look like shown in the following screenshot:

    Open a data source

  7. Finally, click on Preview to see the template in action. Use the arrow icons to navigate through the records.

    Open a data source

You can download the template and the sample data source here.