Back to Devexpress

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

aspnetmvc-devexpress-dot-web-dot-mvc-dot-spreadsheetextension-dot-performmailmerge-x28-system-dot-string-system-dot-object-system-dot-string-system-dot-int32-devexpress-dot-spreadsheet-dot-documentformat-x29.md

latest2.6 KB
Original Source

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

Initializes the mail merge process and generates the documents that contain the merged information.

Namespace : DevExpress.Web.Mvc

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

NuGet Package : DevExpress.Web.Mvc5

Declaration

csharp
public SpreadsheetExtension PerformMailMerge(
    string pathToTemplateXlsx,
    object mailMergeDataSource,
    string mailMergeMode,
    int documentIndex,
    DocumentFormat documentFormat
)
vb
Public Function PerformMailMerge(
    pathToTemplateXlsx As String,
    mailMergeDataSource As Object,
    mailMergeMode As String,
    documentIndex As Integer,
    documentFormat As DocumentFormat
) As SpreadsheetExtension

Parameters

NameTypeDescription
pathToTemplateXlsxString

The path to a template for mail merge.

| | mailMergeDataSource | Object |

The data source object for mail merge.

| | mailMergeMode | String |

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

| | documentIndex | Int32 |

The index of a document to display (when the mailMergeMode parameter is set to Documents).

| | documentFormat | DocumentFormat |

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

|

Returns

TypeDescription
SpreadsheetExtension

The Spreadsheet extension.

|

See Also

SpreadsheetExtension Class

SpreadsheetExtension Members

DevExpress.Web.Mvc Namespace