Method | Description | |
---|---|---|
GetChildDataSource ( string tableName ) : IMailMergeDataSource | ||
GetValue ( string fieldName, object &fieldValue ) : bool |
Aspose.Words calls this method to get a value for every data field. This is a simple "generic" implementation of a data source that can work over Any IEnumerable collection. This implementation assumes that the merge field Name in the document matches the name of a public property on the object In the collection and uses reflection to get the value of the property.
|
|
MoveNext ( ) : bool |
Moves to the next record in the collection.
|
|
MyMailMergeDataSource ( IEnumerable data ) : Aspose.Words |
Creates a new instance of a custom mail merge data source.
|
|
MyMailMergeDataSource ( IEnumerable data, string tableName ) : Aspose.Words |
Creates a new instance of a custom mail merge data source, for mail merge with regions.
|
public GetChildDataSource ( string tableName ) : IMailMergeDataSource | ||
tableName | string | |
return | IMailMergeDataSource |
public GetValue ( string fieldName, object &fieldValue ) : bool | ||
fieldName | string | |
fieldValue | object | |
return | bool |
public MyMailMergeDataSource ( IEnumerable data ) : Aspose.Words | ||
data | IEnumerable | Data returned from a LINQ query. |
return | Aspose.Words |
public MyMailMergeDataSource ( IEnumerable data, string tableName ) : Aspose.Words | ||
data | IEnumerable | Data returned from a LINQ query. |
tableName | string | Name of the data source is only used when you perform mail merge with regions. /// If you prefer to use the simple mail merge then use constructor with one parameter. |
return | Aspose.Words |