/// <summary> /// 获取表内的数据 /// </summary> /// <param name="index"></param> /// <param name="row"></param> /// <param name="cloum"></param> /// <returns></returns> public string GetItemFromSheet(int index, int row, int cloum) { WorkSheet sheet = GetSheet(index); if (sheet != null) { return(GetItemFromSheet(sheet, row, cloum)); } return(null); }
/// <summary> /// Excel文件 /// </summary> /// <param name="tables"></param> public ExcelFile(DataTableCollection tables) { m_sheets = new Dictionary <string, WorkSheet>(); int i = 0; int count = tables.Count; XLSXReader.Log(">>>[1] Tabel Count: " + tables.Count); while (i < count) { WorkSheet sheet = new WorkSheet(tables[i], i); m_sheets[sheet.name] = sheet; i++; } }
public string GetItemFromSheet(WorkSheet sheet, int row, int cloum) { return(sheet.GetItem(row, cloum)); }