Question: how to export data in excel using asp.net?
Answer: Export data as an XLSX file in ASP.NET Core 3.0 You can create an Excel workbook using the following code. var workbook = new XLWorkbook(); You can then take advantage of the IXLWorkSheet interface to create and add worksheets to the workbook as shown below.