Tab

ASPxGridBase.ExportToRtf(Stream, RtfExportOptions) Method

Exports pivot grid data to a stream in RTF format using the specified options.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v21.1.dll

Declaration

public void ExportToRtf(
    Stream stream,
    RtfExportOptions exportOptions
)

Parameters

Name Type Description
stream Stream

A Stream object, to which data is exported.

exportOptions RtfExportOptions

A RtfExportOptions object which specifies the export options to be applied when the control is exported.

Remarks

This method indirectly calls the PrintingSystemBase.ExportToRtf method of the XtraPrinting Library. If this library is not available, the ExportToRtf method does nothing. For details, see PrintingSystemBase.ExportToRtf.

Example

<dx:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" KeyFieldName="ProductID">
    //...
</dx:ASPxGridView>

<dx:ASPxButton ID="ASPxButton1" runat="server" Text="Export" OnClick="ASPxButton1_Click">
</dx:ASPxButton>