TWPMMInsertTextContents

<< Click to Display Table of Contents >>

Navigation:  Programming > Mail Merge (replace fields with data) and data forms > Update Field (Insert Text from Database) > Event OnMailMergeGetText >

TWPMMInsertTextContents

The TWPMMInsertTextContents is used as a parameter 'Contents' in the event OnMailMergeGetText. You can replace a string by simply assign a string to  StringValue.

 

To Modify the attribute of the inserted text (i.e. the font name or style) change the

     property 'MergeAttr'.

 

You can modify the paragraph the start of the field is located. This paragraph is accessible through MergePar.

   

Upgrade Note: The parameter 'c' is not supported anymore.

 

But please note that you can use the common programming interface to insert text and objects.

 

Note: When the event is called the the whole field is selected.