|
MergeText Method |
[Top] [Chapter] [Previous] [Next] |
|
Start the data merging process fo all or a group of fields. Applies to Declaration void MergeText([In] string FieldName); Description Start the data merging process. The event OnFieldGetText will be triggered for each mail merge field.
Mail merge fields can be inserted using IWPTextCursor.InputField(string Name,string Text,bool CursorWithin).
When you need to create a large document from a letter processed by MergeText for all rows in a RecordSet, i.e. to do mass mailing, use the method Memo2.AppendOtherText. Please initialize TextDynamic in the double editor mode, using SetEditorMode(1,...).
If you need to create tables with the contents of a complete RecordSet you can consider to use the internal reporting engine.
The field markers << and >> are usually visible. To hide them use WPDLLInt1.SpecialTextAttr(wpInsertpoints).Hidden = True
Please also see Category Mailmerge and the "Mail merge API introduction". |