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.v21.1.Core.dll

Declaration

public EmailOptions Email { get; }

Property Value

Type Description
EmailOptions

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
.ExportOptions.Email
PrintingSystemBase
.ExportOptions.Email
WinForms Controls PrintingSystem
.ExportOptions.Email
XtraSchedulerReport
.ExportOptions.Email
Reporting XtraReport
.ExportOptions.Email
DocumentOperationRequest
.ExportOptions.Email
Silverlight Controls PrintingSystem
.ExportOptions.Email

Remarks

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

Example

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.
report.ShowPreview();
See Also