Using Microsoft Word Fields

Visual Basic User's Guide

TX Text Control imports and exports all fields that can be inserted into an MS Word document. As described in the technical article, the TXTextControl.FieldType and the associated TXTextControl.FieldTypeData property must be used to create a valid field.

The following two samples show how to use the two most common used fields of MS Word: MERGEFIELD and FORMTEXTBOX.

The source code for these samples is contained in the following directory:

Implementing a MERGEFIELD Class

Implementing a FORMTEXT Class