Skip to main content

VGridControlBase.ExportToRtf(String, RtfExportOptions) Method

Exports the control’s data in the Rich Text Format and saves it to the specified RTF file.

Namespace: DevExpress.XtraVerticalGrid

Assembly: DevExpress.XtraVerticalGrid.v23.1.dll

NuGet Package: DevExpress.Win.VerticalGrid


public void ExportToRtf(
    string filePath,
    RtfExportOptions options


Name Type Description
filePath String

A String value which specifies the full path (including the file name and extension) where the RTF file should be created.

options RtfExportOptions

A RtfExportOptions object specifying how the data should be exported to the Rich Text Format.


This method overwrites any files present at the specified path that have the same name without warning. Note that the .rtf (or an appropriate) extension has to be specified in the path.

The control’s data can only be exported if the XtraPrinting Library is available. Use the VGridControlBase.IsPrintingAvailable property to check whether the control’s data can be exported.

See Also