We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

maxDataRow problem

Hi, I am using cells for java, my problem is that on method cells.getMaxDataRow(); returns -1.

String path = “d:/test.xls”;

InputStream inputStream = new FileInputStream(new File(path));

Workbook workbook = new Workbook();


Worksheets worksheets = workbook.getWorksheets();

Worksheet worksheet = worksheets.getSheet(“Base_Datos_AMEF”);

Cells cells = worksheet.getCells();

int maxDataRow = cells.getMaxDataRow();


There is test file in attachment.



Since you are using some older version, Please try the attached version as it works fine.

Thank you.