public void GetData() { if (ResultInfo.Success) { if (null == _WorkBook) { TryWorkbook(); if (!ResultInfo.Success) { return; } } } else { return; } for (int m = 0; m < this._WorkBook.NumberOfSheets; m++) { ISheet sheet = this._WorkBook.GetSheetAt(m); DataTable NewDt = new DataTable(); FillDt(sheet, NewDt); if (0 == NewDt.Columns.Count) { return; } if (0 < NewDt.Rows.Count) { ResultTables.Add(NewDt); } } if (0 == ResultTables.Count) { ResultInfo.Error(ExcelInfoTypes.WorkbookError, "没有找到数据。"); } }