Skip to main content

GridViewExtension.WritePdfToResponse(GridViewSettings, Object, String, PdfExportOptions) Method

OBSOLETE

Use the ExportToPdf method instead.

Exports the grid’s data to a file in PDF 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 ExportToPdf method instead.", true)]
public static void WritePdfToResponse(
    GridViewSettings settings,
    object dataObject,
    string fileName,
    PdfExportOptions exportOptions
)

Parameters

Name Type
settings GridViewSettings
dataObject Object
fileName String
exportOptions PdfExportOptions
See Also