Exemple #1
0
        public static void WriteExcel(DataTable dt, string filepath)
        {
            var excelOperator = ExcelOperatorFactory.CreateExcelOperator(filepath);

            excelOperator.WriteTable(dt, filepath);
        }
Exemple #2
0
        public static DataTable ReadTable(string filepath)
        {
            var excelOperator = ExcelOperatorFactory.CreateExcelOperator(filepath);

            return(excelOperator.ReadExcel(filepath));
        }