# Excel Export

The Spreadsheet utilizes the [Kendo UI for jQuery Excel export](https://docs.telerik.com/kendo-ui/framework/excel/introduction) framework to produce Excel files directly in the browser.

The output files are in the OOXML Spreadsheet format with an `.xlsx` extension. The legacy `.xls` binary format is not supported.

## User Interface

The default toolbar configuration includes an **Export** button. Clicking it opens a dialog box for entering the file name and selecting the desired output format for the exported document.

![UI for ASP.NET Core Spreadsheet activating the Export to Excel dialog](https://www.telerik.com/aspnet-core-ui/documentation/assets/1f47b18fbff70b32cb2218bfacad13ce/activate-export.png)

The following image demonstrates the export of the Spreadsheet data to Excel.

![UI for ASP.NET Core Spreadsheet Exporting to Excel](https://www.telerik.com/aspnet-core-ui/documentation/assets/506190ffaba732ae0e3a7d61de7f78d1/export-to-excel.png)

## API Export Reference

The Spreadsheet client-side API includes the [`saveAsExcel`](https://docs.telerik.com/kendo-ui/api/ui/spreadsheet/methods/saveasexcel) method for initiating the export with JavaScript. This method does not ask you to specify a file name. Instead, it sets the value in [`excel.fileName`](https://docs.telerik.com/kendo-ui/api/ui/spreadsheet/configuration/excel#excel.fileName).

```Razor HtmlHelper
    @(Html.Kendo().Spreadsheet()
        .Name("spreadsheet")
        .Excel(ex => ex.FileName("Order.xlsx"))
    )
```

## Outputting the Result

Through its default configuration the Telerik UI for ASP.NET Core Spreadsheet exports the current sheet of data with sorting and filtering applied.

## See Also

* [Server-Side API](https://www.telerik.com/aspnet-core-ui/documentation/api/spreadsheet)
* [Custom Functions](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/data-management/spreadsheet/custom-functions)
* [Cell Formatting](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/data-management/spreadsheet/formatting)
* [Data Source Binding](https://www.telerik.com/aspnet-core-ui/documentation/html-helpers/data-management/spreadsheet/import-and-export-data/bind-to-data-source)
