Export To Excel c#
Add this file to your project:
/* To create excel file use next line: */CreateExcelFile.CreateExcelDocument(model.ToList(),CreateExcelFile.CreateExcelDocument("Your"teacherStudents.xlsx",Model".ToList(), "Name.xlsx", Response);
- Don't forget to change namespace in the file :)