The Sample Program

Delphi User's Guide > Mail Merge

The program consists of two forms, Form1 for creating a text and Form2 for connecting it to the database.

Start the program and use the File / Open... command to load the sample file account.tx. The file contains three fields which are to be replaced by database entries. Select Insert / Data to access Form2. When you click the Insert button in Form2, the contents of the three database fields are copied to the text fields in Form1. You can select a different record by clicking one of the data control buttons in Form2, and then clicking Insert again to replace the fields.