C#代码:
Workbook workbook = new Workbook(); workbook.Open(excelfile); Cells cells = workbook.Worksheets[0].Cells; DataTable dt = cells.ExportDataTable(1, 0, cells.MaxDataRow, 2,false);