Procedure TWPCustomRtfEdit.MergeTextEx(FieldName:string; fieldcommand:string; MergeObjType:TWPTextObjType; Options:TWPMergeTextOptions)

Unit: WPCTRMemo
Class: WPCTRMemo.TWPCustomRtfEdit

Parameters

Description

This method either calls the OnMailMergeGetText function for the fields defined by wpobjMergeField objects, this are the usual fields, or for any paired objects which 1. use the given MergeObjType and, if requetsed in options, have wpobjUseForMailmerge in their Mode property. This makes it possible to also merge the text into selected bookmarks and hyperlinks.