Add missing setCurrentRow calls to documentation
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@603916 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
99b5c68d34
commit
fc52062484
@ -63,6 +63,8 @@ HSSFFormulaEvaluator evaluator = new HSSFFormulaEvaluator(sheet, wb);
|
|||||||
CellReference cellReference = new CellReference("B3");
|
CellReference cellReference = new CellReference("B3");
|
||||||
HSSFRow row = sheet.getRow(cellReference.getRow());
|
HSSFRow row = sheet.getRow(cellReference.getRow());
|
||||||
HSSFCell cell = row.getCell(cellReference.getCol());
|
HSSFCell cell = row.getCell(cellReference.getCol());
|
||||||
|
|
||||||
|
evaluator.setCurrentRow(row);
|
||||||
HSSFFormulaEvaluator.CellValue cellValue = evaluator.evaluate(cell);
|
HSSFFormulaEvaluator.CellValue cellValue = evaluator.evaluate(cell);
|
||||||
|
|
||||||
switch (cellValue.getCellType()) {
|
switch (cellValue.getCellType()) {
|
||||||
@ -106,7 +108,7 @@ HSSFFormulaEvaluator evaluator = new HSSFFormulaEvaluator(sheet, wb);
|
|||||||
CellReference cellReference = new CellReference("B3");
|
CellReference cellReference = new CellReference("B3");
|
||||||
HSSFRow row = sheet.getRow(cellReference.getRow());
|
HSSFRow row = sheet.getRow(cellReference.getRow());
|
||||||
HSSFCell cell = row.getCell(cellReference.getCol());
|
HSSFCell cell = row.getCell(cellReference.getCol());
|
||||||
|
evaluator.setCurrentRow(row);
|
||||||
|
|
||||||
if (cell!=null) {
|
if (cell!=null) {
|
||||||
switch (<strong>evaluator.evaluateInCell</strong>(cell).getCellType()) {
|
switch (<strong>evaluator.evaluateInCell</strong>(cell).getCellType()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user