感谢您的帮助和查看,我打开Microsoft Excel 5.0/95 文件,中文出现了乱码!
89899.jpg (123.1 KB)
Aspose.Cells.Workbook book = new Aspose.Cells.Workbook(excelPath);
Aspose.Cells.Worksheet sheet = book.Worksheets[0];
Aspose.Cells.Cells cells = sheet.Cells;
//获取excel中的数据保存到一个datatable中
DataTable dt_Import = cells.ExportDataTableAsString(0, 0, cells.MaxDataRow + 1, cells.MaxDataColumn + 1, false);
// dt_Import.
return dt_Import;