Skip to main content

GridViewExtension.WriteXlsxToResponse(GridViewSettings, Object, String, Boolean) Method

OBSOLETE

Use the ExportToXlsx method instead.

Exports data to a file in XLSX 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 ExportToXlsx method instead.", true)]
public static void WriteXlsxToResponse(
    GridViewSettings settings,
    object dataObject,
    string fileName,
    bool saveAsFile
)

Parameters

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