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

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

            return(excelOperator.ReadExcel(filepath));
        }