Output the passed in DataTable to an xlsx file (Excel 2007+) format. This creates an XML file, so does not require Excel to be installed on the system performing this output.
public static void ExportDataTableToExcelXLSX(DataTable table, string path)
The DataTable to use as the data source
The path and file name to create