We prepared many different demos and sample templates for various conferences in the last weeks. At DevConnections, we presented the latest features of TX Text Control X8 including the new template designer TX Text Control Words.

I set up one particular sample template that was very popular at DevConnections. People's reaction was that they didn't even know that this is possible using a Rich Text Editor - not even with TX Text Control. I thought to publish an article about this reporting sample and how to create it.

This document is a reporting template for presenting stock information highlights on a single page. The following animation shows the template on the left side with all different types of fields, graphics and charts. On the right side, you can see the final merged document with the actual data. As you can see, using TX Text Control, you can create such templates in a true WYSIWYG manner.

First, we need to open the data source. TX Text Control Words comes with a ready-to-use data connection wizard to connect to all types of databases:

Open data source

After the data source is selected, a data table can be chosen from the Select Table drop down list of the Mailings ribbon tab:

Open data table

All available table columns are automatically available as merge fields in the Insert Merge Field drop down list. You can start designing your template in order to insert required fields:

This template contains some specials fields. A large green "UP" should be inserted, if the stock's "day change" is positive or a red "DOWN" when this value is negative.

Special fieldSpecial field

TX Text Control provides IF fields for this purpose. We simply add two adjacent IF fields with different colors at the specific position:

Special field

IF fields are getting specific conditions in order to return a true and a false text. The condition for the first field would be:

If merge field dDayChange is less than 0 then return Down.

Of course, this can be adjusted with the integrated dialog boxes:

Special field

2D and 3D charting is also a new part of TX Text Control version X8. Supported chart types include areas, bars, columns, lines or pies. They can be fully customized and programmed through the Text Control API.

At any time, you can preview your created document with real data. Simply click on the Preview Merge Fields button and navigate through the records:

Preview

TX Text Control is the only component that combines the power of reporting and mail merge features with a true WYSIWYG designer control. Test it on your own and download a trial version of TX Text Control X8 today.

You can download the template and the sample database right here.