The chapter Using Text Control with a Database showed you how to store a Text Control's entire contents in a database field. For implementing functions like mail merge, however, the requirements are different: the contents of database fields have to be inserted at specified positions in a previously prepared document. The following sample program provides you with the basis of how to this.
The code shown here is contained in the Samples\Delphi\StdLet sample source directory.
The Sample Program
How it Works