C# Class Aspose.Words.Examples.CSharp.Mail_Merge.NestedMailMergeCustom.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 ) : Aspose.Words
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 ) : Aspose.Words
customers CustomerList
return Aspose.Words

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