
The chapter Connecting to Databases showed you how to store the entire contents of a TX Text Control in a database field. For implementing mail-merge functionality, however, the requirements are different: The contents of database fields have to be inserted at specified positions in a previously prepared document.
The following series of sample programs starts with an introduction on how to use the TX Text Control internal text fields with databases. Step 2 then adds printing capabilities, and step 3 finally shows how to prepare a document for mail merge by inserting database fields.
The source code for this example is contained in the subfolders Step1 to Step3 of the following directories:
Used TX Text Control controls:
Relevant API links: