notimplementedexception

Java POI : How to read Excel cell value and not the formula computing it?

*爱你&永不变心* 提交于 2019-11-28 16:38:41
I am using Apache POI API to getting values from an Excel file. Everything is working great except with cells containing formulas. In fact, the cell.getStringCellValue() is returning the formula used in the cell and not the value of the cell. I tried to use evaluateFormulaCell() method but it's not working because I am using GETPIVOTDATA Excel formula and this formula is not implemented in the API: Exception in thread "main" org.apache.poi.ss.formula.eval.NotImplementedException: Error evaluating cell Landscape!K11 at org.apache.poi.ss.formula.WorkbookEvaluator.addExceptionInfo

Java POI : How to read Excel cell value and not the formula computing it?

跟風遠走 提交于 2019-11-27 09:50:07
问题 I am using Apache POI API to getting values from an Excel file. Everything is working great except with cells containing formulas. In fact, the cell.getStringCellValue() is returning the formula used in the cell and not the value of the cell. I tried to use evaluateFormulaCell() method but it's not working because I am using GETPIVOTDATA Excel formula and this formula is not implemented in the API: Exception in thread "main" org.apache.poi.ss.formula.eval.NotImplementedException: Error

Why does NotImplementedException exist?

自作多情 提交于 2019-11-26 18:13:44
This really, really urks me, so I hope that someone can give me a reasonable justification for why things are as they are. NotImplementedException. You are pulling my leg, right? No, I'm not going to take the cheap stab at this by saying, "hang on, the method is implemented - it throws a NotImplementedException." Yes, that's right, you have to implement the method to throw a NotImplementedException (unlike a pure virtual function call in C++ - now that makes sense!). While that's pretty damn funny, there is a more serious problem in my mind. I just wonder, in the presence of the

Why does NotImplementedException exist?

你。 提交于 2019-11-26 06:15:05
问题 Locked . This question and its answers are locked because the question is off-topic but has historical significance. It is not currently accepting new answers or interactions. This really, really urks me, so I hope that someone can give me a reasonable justification for why things are as they are. NotImplementedException. You are pulling my leg, right? No, I\'m not going to take the cheap stab at this by saying, \"hang on, the method is implemented - it throws a NotImplementedException.\" Yes