TX Text Control .NET for Windows Forms Documentation

Howto: Mail Merge

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:

  • %USERPROFILE%\My Documents\TX Text Control 17.0.NET for Windows Forms\Samples\WinForms\VB.NET\MailMerge
  • %USERPROFILE%\My Documents\TX Text Control 17.0.NET for Windows Forms\Samples\WinForms\CSharp\MailMerge

Used TX Text Control controls:

  • TXTextControl.TextControl
  • TXTextControl.ButtonBar
  • TXTextControl.RulerBar
  • TXTextControl.StatusBar

Relevant API links:

Step 1 - Merging Database Data and Text

Step 2 - Printing

Step 3 - Creating Templates

 
 
 

Products

Support

Downloads

Corporate

Buy Now