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.v19.2.Web.WebForms.dll

Declaration

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

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