Skip to content

ExcelContentResult.Create method (1 of 2)

Creates a FileContentResult containing the passed data.

public static FileContentResult Create(byte[] data)
parameter description
data The data containing Excel bytes.

Return Value

A FileContentResult.

See Also


ExcelContentResult.Create method (2 of 2)

Creates a FileContentResult containing the passed data and a download name.

public static FileContentResult Create(byte[] data, string downloadName)
parameter description
data The data containing Excel file bytes.
downloadName The optional download name.

Return Value

A FileContentResult.

See Also