A newer version of this page is available. Switch to the current version.

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

Obsolete. 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.v18.2.dll

Declaration

[Obsolete("Use the ExportToPdf method instead.", true)]
public static void WritePdfToResponse(
    GridViewSettings settings,
    object dataObject,
    string fileName,
    bool saveAsFile,
    PdfExportOptions exportOptions
)
<Obsolete("Use the ExportToPdf method instead.", True)>
Public Shared Sub WritePdfToResponse(
    settings As GridViewSettings,
    dataObject As Object,
    fileName As String,
    saveAsFile As Boolean,
    exportOptions As PdfExportOptions
)

Parameters

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