ASPxGridBase.ExportToRtf(Stream, RtfExportOptions) Method
In This Article
Exports pivot grid data to a stream in RTF format using the specified options.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v24.2.dll
NuGet Package: DevExpress.Web
#Declaration
public void ExportToRtf(
Stream stream,
RtfExportOptions exportOptions
)
#Parameters
Name | Type | Description |
---|---|---|
stream | Stream | A Stream object, to which data is exported. |
export |
Rtf |
A Rtf |
#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
protected void ASPxButton1_Click(object sender, EventArgs e)
{
RtfExportOptions options = new RtfExportOptions();
options.ExportMode = RtfExportMode.SingleFile;
using (System.IO.FileStream output = new System.IO.FileStream(@"F:\MyOutput.pdf", FileMode.Create)) {
ASPxGridView1.ExportToPdf(output, options);
}
}
Note
DevExpress controls require the DevExpress.
See Also