Skip to main content
A newer version of this page is available. .

SpreadsheetExtension.PerformMailMerge(String, Object, String, Int32, DocumentFormat) Method

Initializes the mail merge process and generates the resulting documents containing the merged information.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v18.2.dll

Declaration

public SpreadsheetExtension PerformMailMerge(
    string pathToTemplateXlsx,
    object mailMergeDataSource,
    string mailMergeMode,
    int documentIndex,
    DocumentFormat documentFormat
)

Parameters

Name Type Description
pathToTemplateXlsx String

A string value that specifies the path to a template for mail merge.

mailMergeDataSource Object

An object specifying the data source object for mail merge.

mailMergeMode String

A string value that specifies the mail merge mode (“Worksheets”, “OneWorksheet” or “Documents”).

documentIndex Int32
documentFormat DocumentFormat

A DocumentFormat object specifying the document format in which to save a workbook (such as XLSX, XLS, etc).

Returns

Type Description
SpreadsheetExtension

A SpreadsheetExtension object that represents the Spreadsheet extension.

See Also