XtraReport.ExportToMail(MailMessageExportOptions) Method

Exports a report to HTML and inserts it into a specified e-mail message.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v20.1.dll


public AlternateView ExportToMail(
    MailMessageExportOptions options = null
Public Function ExportToMail(
    options As MailMessageExportOptions = Nothing
) As AlternateView

Optional Parameters

Name Type Default Description
options MailMessageExportOptions


The mail message export options.


Type Description

A AlternateView object.


Once the document export has started, it will run until the resulting document is complete and cannot be interrupted or canceled in the process.

Use the ExportToMailAsync(MailMessageExportOptions, CancellationToken) method instead of ExportToMail to export a report asynchronously in a separate task.

See Also