public DataTable ExcelTable() { DataTable dt = new DataTable(); dt.Columns.Add("Id", typeof(int)); dt.Columns.Add("NameSurname", typeof(string));< ..my code. return dataTable; } Excel.Application ExcelApp = new Excel.Application(); ExcelApp.CreateDirectory("C:\NOTES\InformationTable");
CreateDirectory
Save
SaveAs
WorkBook
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)