mirror of https://github.com/apache/poi.git
forbidden api
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1893730 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f44c15575d
commit
50a2b9376b
|
@ -1232,7 +1232,7 @@ public final class TestXSSFWorkbook extends BaseTestXWorkbook {
|
||||||
XSSFCell cell = row2.createCell(0);
|
XSSFCell cell = row2.createCell(0);
|
||||||
|
|
||||||
b.linkExternalWorkbook(nameA, a);
|
b.linkExternalWorkbook(nameA, a);
|
||||||
String formula = String.format("SUM('[%s]Sheet0'!A1:B1)", nameA);
|
String formula = String.format(LocaleUtil.getUserLocale(), "SUM('[%s]Sheet0'!A1:B1)", nameA);
|
||||||
cell.setCellFormula(formula);
|
cell.setCellFormula(formula);
|
||||||
XSSFFormulaEvaluator evaluator = b.getCreationHelper().createFormulaEvaluator();
|
XSSFFormulaEvaluator evaluator = b.getCreationHelper().createFormulaEvaluator();
|
||||||
evaluator.evaluateFormulaCell(cell);
|
evaluator.evaluateFormulaCell(cell);
|
||||||
|
|
Loading…
Reference in New Issue