A newer version of this page is available. Switch to the current version.

ReportViewer.WriteTextTo(HttpResponse, String, TextExportOptions) Method

Exports the report to text using the specified export type and text-specific export options, and writes the output to the specified HTTP response.

Namespace: DevExpress.XtraReports.Web

Assembly: DevExpress.XtraReports.v18.2.Web.WebForms.dll


public void WriteTextTo(
    HttpResponse response,
    string exportType,
    TextExportOptions options
Public Sub WriteTextTo(
    response As HttpResponse,
    exportType As String,
    options As TextExportOptions


Name Type Description
response HttpResponse

A HttpResponse object specifying the HTTP response to which the file should be written.

exportType String

A String specifying the appropriate file extension (e.g. "txt" or "csv").

options TextExportOptions

A TextExportOptions object which contains Text-specific export options.


The stream generated by this method contains the text representation of the report, and will be written to the specified HttpResponse object.

See Also