Aspose::Words::MailMerging::FieldMergingArgs class

FieldMergingArgs class

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

class FieldMergingArgs : public Aspose::Words::MailMerging::FieldMergingArgsBase

Methods

MethodDescription
get_Document() constReturns the Document object for which the mail merge is performed.
get_DocumentFieldName() constGets the name of the merge field as specified in the document.
get_Field() constGets the object that represents the current merge field.
get_FieldName() constGets the name of the merge field in the data source.
get_FieldValue() constGets the value of the field from the data source.
get_RecordIndex() constGets the zero based index of the record that is being merged.
get_TableName() constGets the name of the data table for the current merge operation or empty string if the name is not available.
get_Text() constGets or sets the text that will be inserted into the document for the current merge field.
GetType() const override
Is(const System::TypeInfo&) const override
set_FieldValue(const System::SharedPtr<System::Object>&)Sets the value of the field from the data source.
set_Text(const System::String&)Setter for Aspose::Words::MailMerging::FieldMergingArgs::get_Text.
static Type()

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.

See Also