MailMergeSettingsBuilder.DataSource(IDictionary) Method
In This Article
Sets a data source for Rich Text Editor’s mail merge functionality.
Namespace: DevExpress.AspNetCore.RichEdit
Assembly: DevExpress.AspNetCore.RichEdit.v24.2.dll
NuGet Package: DevExpress.AspNetCore.RichEdit
#Declaration
C#
public MailMergeSettingsBuilder DataSource(
IDictionary data
)
#Parameters
Name | Type | Description |
---|---|---|
data | IDictionary | The Mail |
#Returns
Type | Description |
---|---|
Mail |
An object that can be used to further configure the Mail |
#Remarks
@(Html.DevExpress().RichEdit("richEdit")
.Open("Documents/MailMergeTemplate.docx")
.MailMerge(m => m
.DataSource(new Dictionary<string, string>() { { "CompanyName", "Super Mart of the West" }, { "Address", "702 SW 8th Street" }})
.ViewMergedData(true)
)
)
See Also