There are two ways to export data-table to excel −
DataTable.Export (“C:\export.xls”)
DataTable.ExportSheet “C:\mysheet.xls” ( creates the new file in the absence of excel file)
Your experience on this site will be improved by allowing cookies. Read Cookie Policy