ExportOptions.Email Property
In This Article
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.v24.2.Core.dll
NuGet Package: DevExpress.Printing.Core
#Declaration
public EmailOptions Email { get; }
#Property Value
Type | Description |
---|---|
Email |
Email export options. |
#Property Paths
You can access this nested property as listed below:
Library | Object Type | Path to Email |
---|---|---|
Cross-Platform Class Library | Printing |
|
.NET Reporting Tools | Xtra |
|
Document |
|
#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