C# Class ApiExamples.ExMailMergeCustom.CustomerMailMergeDataSource

A custom mail merge data source that you implement to allow Aspose.Words to mail merge data from your Customer objects into Microsoft Word documents.
Inheritance: IMailMergeDataSource
Show file Open project: aspose-words/Aspose.Words-for-.NET

Private Properties

Property Type Description

Public Methods

Method Description
CustomerMailMergeDataSource ( CustomerList customers ) : System.Collections
GetChildDataSource ( string tableName ) : IMailMergeDataSource
GetValue ( string fieldName, object &fieldValue ) : bool

Aspose.Words calls this method to get a value for every data field.

MoveNext ( ) : bool

A standard implementation for moving to a next record in a collection.

Method Details

CustomerMailMergeDataSource() public method

public CustomerMailMergeDataSource ( CustomerList customers ) : System.Collections
customers CustomerList
return System.Collections

GetChildDataSource() public method

public GetChildDataSource ( string tableName ) : IMailMergeDataSource
tableName string
return IMailMergeDataSource

GetValue() public method

Aspose.Words calls this method to get a value for every data field.
public GetValue ( string fieldName, object &fieldValue ) : bool
fieldName string
fieldValue object
return bool

MoveNext() public method

A standard implementation for moving to a next record in a collection.
public MoveNext ( ) : bool
return bool