MergeText Method

[Top]  [Chapter]  [Previous]  [Next]

Start the data merging process fo all or a group of fields.

Applies to

IWPMemo

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).

 

Note

RTF2PDF uses standard RTF tags to load and save fields so merge fields inserted in Word are usually available in RTF2PDF as well (without the extended attributes). Alternatively you can inserted the tags using escape text, i.e. <name> and use the method IWPTextCursor.FieldsFromTokens(StartText,EndText,FieldPreText) to convert the text into merge fields.

 

Parameters

Name

The name of the fields to be merged. You can use the wildcard * to process a group of fields, i.e. MergeText("CustomerDB.*").

Please also see Category Mailmerge and the "mail merge API introduction".


[idh_iwpmemo_mergetext.htm]    Copyright © 2007 by WPCubed GmbH