SpreadsheetExtension.PerformMailMerge(String, Object, String, Int32, DocumentFormat) Method
In This Article
Initializes the mail merge process and generates the documents that contain the merged information.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.2.dll
NuGet Package: DevExpress.Web.Mvc5
#Declaration
public SpreadsheetExtension PerformMailMerge(
string pathToTemplateXlsx,
object mailMergeDataSource,
string mailMergeMode,
int documentIndex,
DocumentFormat documentFormat
)
#Parameters
Name | Type | Description |
---|---|---|
path |
String | The path to a template for mail merge. |
mail |
Object | The data source object for mail merge. |
mail |
String | A string value that specifies the mail merge mode (“Worksheets”, “One |
document |
Int32 | The index of a document to display (when the mail |
document |
Document |
A document format in which to save a workbook (such as XLSX, XLS, etc). |
#Returns
Type | Description |
---|---|
Spreadsheet |
The Spreadsheet extension. |
See Also