|
ASPOSE home |
public interface IMailMergeDataSource
Property Getters/Setters Summary | ||
---|---|---|
abstract java.lang.String | getTableName() | |
Returns the name of the data source that this data source represnets. |
Method Summary | ||
---|---|---|
abstract boolean | getValue(java.lang.String fieldName, java.lang.Object[] fieldValue) | |
Returns value for the specified name or false if the value is not found. | ||
abstract boolean | moveNext() | |
Advances to the next record in the data source. |
Property Getters/Setters Detail |
---|
getTableName | |
public abstract java.lang.String getTableName() |
If you are implementing
Aspose.Words uses this name to match against the mail merge region name specified in the template document. The comparision between the data source name and the mail merge region name is not case sensitive.
Method Detail |
---|
getValue | |
public abstract boolean getValue(java.lang.String fieldName, java.lang.Object[] fieldValue) throws java.lang.Exception |
fieldValue emulates .Net out parameter.
Before calling the method one shold initialize fieldValue parameter. After method returns true one can get the value from fieldValue[0]. For example:Object[] fieldValue = {null}; boolean isValueFound = mDataSource.getValue(fieldName, fieldValue); int value = isValueFound ? fieldValue[0] : 0;
So, method implementer in case if value is founded shold assign founded value to fieldValue[0] and return true.
fieldName
- The name of the data field.fieldValue
- Returns the field value inside fieldValue[0].moveNext | |
public abstract boolean moveNext() throws java.lang.Exception |
|
ASPOSE home |