The requested page is not available for the requested platform. You are viewing the content for .NET Framework 4.5.2+ platform.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

RichEditDocumentServer.BeforeExport Event

Occurs before the document is saved (exported to a certain format).

Namespace: DevExpress.XtraRichEdit

Assembly: DevExpress.RichEdit.v19.2.Core.dll

Declaration

public event BeforeExportEventHandler BeforeExport
Public Event BeforeExport As BeforeExportEventHandler
public event BeforeExportEventHandler BeforeExport
Public Event BeforeExport As BeforeExportEventHandler
public event BeforeExportEventHandler BeforeExport
Public Event BeforeExport As BeforeExportEventHandler

Event Data

The BeforeExport event handler receives an argument of the BeforeExportEventArgs type. The following properties provide information specific to this event.

Property Description
CustomProperties Provides access to the document's custom properties.
DocumentFormat Gets the format of the document being exported or saved.
Options Provides access to the exporter options.

Remarks

You can check the Document.RequiredExportCapabilities to be sure that the chosen export format supports them.

The BeforeExport event enables you to adjust the exporter options as required.

For RTF format, you can specify the RtfDocumentExporterCompatibilityOptions.DuplicateObjectAsMetafile property to make resulting files smaller. For the HTML format, you can set the location of external content (images, css files) via the IExporterOptions.TargetUri property and specify other HtmlDocumentExporterOptions.

See Also