Back to Devexpress

IWorkbook.MailMergeDataMember Property

officefileapi-devexpress-dot-spreadsheet-dot-iworkbook-c66cad71.md

latest3.2 KB
Original Source

IWorkbook.MailMergeDataMember Property

Specifies the member of the mail merge data source.

Namespace : DevExpress.Spreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
string MailMergeDataMember { get; set; }
vb
Property MailMergeDataMember As String

Property Value

TypeDescription
String

A String value specifying the data member name.

|

Remarks

Set the MailMergeDataMember property of the mail merge template workbook after assigning a dataset that contains multiple data tables to the IWorkbook.MailMergeDataSource property. See the How to: Perform a Mail Merge example.

The MailMergeDataMember property is irrelevant when the mail merge data source is a data table or a data view.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the MailMergeDataMember property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-spreadsheet-mail-merge/CS/DXApplication1/Form1.cs#L25

csharp
template.MailMergeDataSource = dataSet;
    template.MailMergeDataMember = "Categories";
}

winforms-spreadsheet-mail-merge/VB/DXApplication1/Form1.vb#L25

vb
template.MailMergeDataSource = dataSet
    template.MailMergeDataMember = "Categories"
End Sub

See Also

Mail Merge in WinForms Spreadsheet Control

WinForms Spreadsheet Control Examples

IWorkbook Interface

IWorkbook Members

DevExpress.Spreadsheet Namespace