public static void WriteExcel(DataTable dt, string filepath) { var excelOperator = ExcelOperatorFactory.CreateExcelOperator(filepath); excelOperator.WriteTable(dt, filepath); }
public static DataTable ReadTable(string filepath) { var excelOperator = ExcelOperatorFactory.CreateExcelOperator(filepath); return(excelOperator.ReadExcel(filepath)); }