Skip to main content

GridViewExtension.WriteXlsToResponse(GridViewSettings, Object, String, Boolean, XlsExportOptions) Method

OBSOLETE

Use the ExportToXls method instead.

Exports data to a file in XLS format and writes it to the Response in binary format.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v23.2.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

[Obsolete("Use the ExportToXls method instead.", true)]
public static void WriteXlsToResponse(
    GridViewSettings settings,
    object dataObject,
    string fileName,
    bool saveAsFile,
    XlsExportOptions exportOptions
)

Parameters

Name Type
settings GridViewSettings
dataObject Object
fileName String
saveAsFile Boolean
exportOptions XlsExportOptions
See Also