Aspose.Cells 读取Excel数据到DataTable_其他

 C#代码:

Workbook workbook = new Workbook();

workbook.Open(excelfile);

 
Cells cells = workbook.Worksheets[0].Cells;

DataTable dt = cells.ExportDataTable(1, 0, cells.MaxDataRow, 2,false);