| Skype: | TextControlSupport | |
| Orders: | 877-462-4772 |
![]() |
![]() |




Mail merge is a common task for TX Text Control based applications. Mail merge is typically used to create many documents at once that contain identical formatting, layout, text, graphics and where only certain portions of each document varies.
TX Text Control mail merge projects always consist of two files:
The template document contains the information that will remain the same in each record, and the data source contains all the variable information, in the form of fields. This is the information that will change in the template document when the merge is completed.
Along with the information that remains the same, the template document also contains macro fields, which are references to the fields in the data source.
For example, imagine you wish to send a printed mail shot to your entire customer database. Using TX Text Control, you can edit the template document that you would like to send, entering the aforementioned macro fields in place of the recipient's name and address. Once this document has been saved, you can connect almost any data source to the document, perform the merge and print out all the customized letters in batch mode.
Similarly, the resulting merged documents can also be faxed (using a printer to fax driver) or saved as HTML or PDF (two of TX Text Control's many file formats) and sent by e-mail.
If you are interested in learning more about building Mail Merge applications with TX Text Control, please take a look at the Databases section of the Source Code Library. It contains a number of well documented sample applications that illustrate many aspects of connecting a database to TX Text Control: