Skip to main content

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.v24.1.Web.WebForms.dll

NuGet Package: DevExpress.Web.Reporting

Declaration

public void WriteTextTo(
    HttpResponse response,
    string exportType,
    TextExportOptions options
)

Parameters

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.

Remarks

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

See Also