GridViewExtension.WriteDocx(GridViewSettings, Object, Stream) Method

Exports the grid’s data to a stream in DOCX format.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v21.1.dll


public static void WriteDocx(
    GridViewSettings settings,
    object dataObject,
    Stream stream


Name Type Description
settings GridViewSettings

A GridViewSettings object that contains GridView settings.

dataObject Object

An object representing the GridView’s data source.

stream Stream

A Stream object to which the data is exported.


DevExpress controls require the DevExpress.RichEdit.v21.1.Export.dll library to export their content to DOCX or RTF format.

See Also