/// <summary> /// 转换为DataTable(内存流+表名) /// </summary> public static DataTable TranslateToTable(System.IO.Stream stream, string sheetName) { ExcelUtils utils = new ExcelUtils(stream); return(utils.ToDataTable(sheetName)); }
/// <summary> /// 转换为DataTable(内存流) /// </summary> public static DataTable TranslateToTable(System.IO.Stream stream) { ExcelUtils utils = new ExcelUtils(stream); return(utils.ToDataTable(0)); }
/// <summary> /// 转换为DataTable(文件路径+表索引) /// </summary> public static DataTable TranslateToTable(string path, int sheetIndex) { ExcelUtils utils = new ExcelUtils(path); return(utils.ToDataTable(sheetIndex)); }
/// <summary> /// 转换为DataTable(文件路径) /// </summary> public static DataTable TranslateToTable(string path) { ExcelUtils utils = new ExcelUtils(path); return(utils.ToDataTable(0)); }
/// <summary> /// ת��ΪDataTable(�ļ�·��+������) /// </summary> public static DataTable TranslateToTable(string path, int sheetIndex) { ExcelUtils utils = new ExcelUtils(path); return utils.ToDataTable(sheetIndex); }
/// <summary> /// ת��ΪDataTable(�ļ�·��+����) /// </summary> public static DataTable TranslateToTable(string path, string sheetName) { ExcelUtils utils = new ExcelUtils(path); return utils.ToDataTable(sheetName); }
/// <summary> /// ת��ΪDataTable(�ڴ���) /// </summary> public static DataTable TranslateToTable(System.IO.Stream stream) { ExcelUtils utils = new ExcelUtils(stream); return utils.ToDataTable(0); }
/// <summary> /// ת��ΪDataTable(�ڴ���+������) /// </summary> public static DataTable TranslateToTable(System.IO.Stream stream, int sheetIndex) { ExcelUtils utils = new ExcelUtils(stream); return utils.ToDataTable(sheetIndex); }
/// <summary> /// ת��ΪDataTable(�ڴ���+����) /// </summary> public static DataTable TranslateToTable(System.IO.Stream stream, string sheetName) { ExcelUtils utils = new ExcelUtils(stream); return utils.ToDataTable(sheetName); }