|
ASPOSE home |
java.lang.ObjectMergeFieldEventArgsBase
com.aspose.words.MergeFieldEventArgs
public class MergeFieldEventArgs
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.
Property Getters/Setters Summary | ||
---|---|---|
Document | getDocument() | → inherited from MergeFieldEventArgsBase |
Returns the |
||
java.lang.String | getDocumentFieldName() | → inherited from MergeFieldEventArgsBase |
Gets the name of the merge field as specified in the document. | ||
Field | getField() | → inherited from MergeFieldEventArgsBase |
Gets the object that represents the current merge field. | ||
java.lang.String | getFieldName() | → inherited from MergeFieldEventArgsBase |
Gets the name of the merge field in the data source. | ||
java.lang.Object | getFieldValue() | → inherited from MergeFieldEventArgsBase |
Gets the value of the field from the data source. | ||
int | getRecordIndex() | → inherited from MergeFieldEventArgsBase |
Gets the zero based index of the record that is being merged. | ||
java.lang.String | getTableName() | → inherited from MergeFieldEventArgsBase |
Gets the name of the data table for the current merge operation or empty string if the name is not available. | ||
java.lang.String | getText() | |
void | setText(java.lang.String value) | |
Gets or sets the text that will be inserted into the document for the current merge field. |
Property Getters/Setters Detail |
---|
getText/setText | |
public java.lang.String getText() public void setText(java.lang.String value) |
When your event handler is called, this property is set to null.
If you leave Text as null, the mail merge engine will insert
If you set Text to a non empty string, the string will be inserted into the document in place of the merge field.
If you set Text to an empty string, the mail merge engine will remove the merge field.
getDocument | → inherited from MergeFieldEventArgsBase |
public Document getDocument() |
getTableName | → inherited from MergeFieldEventArgsBase |
public java.lang.String getTableName() |
getRecordIndex | → inherited from MergeFieldEventArgsBase |
public int getRecordIndex() |
getFieldName | → inherited from MergeFieldEventArgsBase |
public java.lang.String getFieldName() |
If you have a mapping from a document field name to a different data source field name, then this is the mapped field name.
If you specified a field name prefix, for example "Image:MyFieldName" in the document, then FieldName returns field name without the prefix, that is "MyFieldName".
getDocumentFieldName | → inherited from MergeFieldEventArgsBase |
public java.lang.String getDocumentFieldName() |
If you have a mapping from a document field name to a different data source field name, then this is the original field name as specified in the document.
If you specified a field name prefix, for example "Image:MyFieldName" in the document, then DocumentFieldName returns field name without the prefix, that is "MyFieldName".
getFieldValue | → inherited from MergeFieldEventArgsBase |
public java.lang.Object getFieldValue() |
getField | → inherited from MergeFieldEventArgsBase |
public Field getField() |
|
ASPOSE home |