Browse Source

[bug-66365] update XSSFExcelExtractor to better handle formula cells with cached results of string type

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1905572 13f79535-47bb-0310-9956-ffa450edef68
tags/REL_5_2_4
PJ Fanning 1 year ago
parent
commit
c8f4cbd20b

+ 4
- 0
poi-ooxml/src/main/java/org/apache/poi/xssf/extractor/XSSFExcelExtractor.java View File

@@ -224,6 +224,10 @@ public class XSSFExcelExtractor
CellType type = cell.getCellType();
if (type == CellType.FORMULA) {
type = cell.getCachedFormulaResultType();
if (type == CellType.STRING) {
handleStringCell(text, cell);
return;
}
}

if (type == CellType.NUMERIC) {

Loading…
Cancel
Save