Not logged in - Login
< back

Export To Excel c#

Export to excel:

addAdd this file to your project:

Export To Excel File

 

/* To create excel file use next line: */ 
CreateExcelFile.CreateExcelDocument(model.ToList(), "teacherStudents.xlsx", Response);

  • Don't forget to change namespace in the file :)