Export data in Excel format from an ASP.NET 6.0 Razor Pages Web App
Channel: Medhat Elmasry
Date: 2022-01-10

Source code: https://github.com/medhatelmasry/ExcelStar.git
Companion Article: https://blog.medhat.ca/2022/01/export-data-in-excel-format-from-aspnet.html

In this tutorial I will show you how you can use the ClosedXML nuget package to export data in Excel format using an ASP.NET 6.0 Razor Pages web app. The data we will is is hard-coded student data. However, the approach works for data from any data source.