Skip to main content

ExportOptions.Email Property

Gets the settings used to specify exporting parameters when a document is sent by e-mail in Print Preview.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Printing.v22.2.Core.dll

NuGet Packages: DevExpress.Printing.Core, DevExpress.Win.Dashboard.Design


public EmailOptions Email { get; }

Property Value

Type Description

Email export options.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to Email
Cross-Platform Class Library RemotePrintingSystem
WinForms Controls PrintingSystem
WPF Controls PrintingSystem
Reporting XtraReport


Use this property to specify parts of an email message before you sent it in Print Preview.


The code sample below creates a simple report, specifies the Subject and Body parts of an email message, and displays the report in Print Preview.

// Creates a simple report.
XtraReport report = new XtraReport()
    Name = "SimpleReport",
    Bands = {
        new DetailBand() {
            Controls = {
                new XRLabel() {
                    Text = "Simple Report"
// Specifies mail options.
report.ExportOptions.Email.Body = "Please see the report attached.";
report.ExportOptions.Email.Subject = $"The {report.Name} report is sent upon your request.";
// Displays the report in the Print Preview.
See Also