Hi,
I am trying to read a xlsm file with POI
switch (cell.getCachedFormulaResultType()) {
case Cell.CELL_TYPE_NUMERIC:
double value = cell.getNumericCellValue();
int formatIndex = cell.getCellStyle().getDataFormat();
String formatStr = cell.getCellStyle().getDataFormatString();
formatted = dateFormatter.formatRawCellContents(0.0, formatIndex, formatStr);
break;
}
Whenever there is value 0.0 formatRawCellContents api is throwing IllegalArgument Execption.
Any Idea ?
Thanks
Narayan
I am trying to read a xlsm file with POI
switch (cell.getCachedFormulaResultType()) {
case Cell.CELL_TYPE_NUMERIC:
double value = cell.getNumericCellValue();
int formatIndex = cell.getCellStyle().getDataFormat();
String formatStr = cell.getCellStyle().getDataFormatString();
formatted = dateFormatter.formatRawCellContents(0.0, formatIndex, formatStr);
break;
}
Whenever there is value 0.0 formatRawCellContents api is throwing IllegalArgument Execption.
Any Idea ?
Thanks
Narayan