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

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

            return(excelOperator.ReadExcel(filepath));
        }