FieldMergingArgs class

FieldMergingArgs class

Provides data for the MergeField event. To learn more, visit the Mail Merge and Reporting documentation article.

Remarks

The MergeField event occurs during mail merge when a simple mail merge field is encountered in the document. You can respond to this event to return text for the mail merge engine to insert into the document.

Inheritance: FieldMergingArgsFieldMergingArgsBase

Properties

NameDescription
documentReturns the FieldMergingArgsBase.document object for which the mail merge is performed.
(Inherited from FieldMergingArgsBase)
document_field_nameGets the name of the merge field as specified in the document.
(Inherited from FieldMergingArgsBase)
fieldGets the object that represents the current merge field.
(Inherited from FieldMergingArgsBase)
field_nameGets the name of the merge field in the data source.
(Inherited from FieldMergingArgsBase)
field_valueGets or sets the value of the field from the data source.
(Inherited from FieldMergingArgsBase)
record_indexGets the zero based index of the record that is being merged.
(Inherited from FieldMergingArgsBase)
table_nameGets the name of the data table for the current merge operation or empty string if the name is not available.
(Inherited from FieldMergingArgsBase)
textGets or sets the text that will be inserted into the document for the current merge field.

See Also