poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 60389] XSSFSheet getLastRowNum return strange value
Date Fri, 18 Nov 2016 06:58:03 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=60389

--- Comment #1 from Zero <tuyenivt@gmail.com> ---
Created attachment 34459
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=34459&action=edit
excel formated last row

excel file added formated last row (1048576) as currency (decimal: 0; symbol:
$)

test code:
@Test
public void testGetLastRowNum() throws IOException {
  String filePath = "test-data/60389_get_last_row_num.xlsx";
  try (XSSFWorkbook wb = new XSSFWorkbook(new FileInputStream(filePath))) {
    XSSFSheet sheet = wb.getSheetAt(0);
    System.out.println(sheet.getLastRowNum());
  }
}

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message