}
- //摂取量 名前付き範囲
+ //摂取量 範囲を記憶
String intakeArea = new CellReference(3, 3, true, true).formatAsString() + ":" + new CellReference(rowIndex -1, 3, true, true).formatAsString();
- //XSSFName intakeNamedRangeArea = (XSSFName) outputWorkbook.createName();
- //intakeNamedRangeArea.setNameName("AREA_INTAKE");
- //intakeNamedRangeArea.setRefersToFormula(intakeArea);
namedAreaMap.put("AREA_INTAKE", intakeArea);
Cell thisCell = sumRow.createCell(colIndex);
String sumTargetArea = new CellReference(3, colIndex, true, true).formatAsString() + ":" + new CellReference(rowIndex -1, colIndex, true, true).formatAsString();
- //名前付き範囲(alias あれば設定)
+ //範囲を記憶(alias あれば設定)
if(aColumn.getAlias().length() > 0) {
- //XSSFName namedRangeArea = (XSSFName) outputWorkbook.createName();
- //namedRangeArea.setNameName("AREA_" + aColumn.getAlias());
- //namedRangeArea.setRefersToFormula(sumTargetArea);
namedAreaMap.put("AREA_" + aColumn.getAlias(), sumTargetArea);
if(aColumn.isUseSum()) {
- //XSSFName namedRangeSum = (XSSFName) outputWorkbook.createName();
- //namedRangeSum.setNameName("SUM_" + aColumn.getAlias());
String sumArea = new CellReference(rowIndex, colIndex, true, true).formatAsString();
- //namedRangeSum.setRefersToFormula(sumArea);
namedAreaMap.put("SUM_" + aColumn.getAlias(), sumArea);
}
}