Aspose.Words.Examples.CSharp.Mail_Merge.LINQtoXMLMailMerge.MyMailMergeDataSource.MyMailMergeDataSource C# (CSharp) Method

MyMailMergeDataSource() public method

Creates a new instance of a custom mail merge data source, for mail merge with regions.
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
            public MyMailMergeDataSource(IEnumerable data, string tableName)
            {
                mEnumerator = data.GetEnumerator();
                mTableName = tableName;
            }
            // ExEnd:MyMailMergeDataSourceConstructorWithDataTable

Same methods

LINQtoXMLMailMerge.MyMailMergeDataSource::MyMailMergeDataSource ( IEnumerable data ) : Aspose.Words