Можно ли добавить формулу в таблицу с использованием javas API-слова aspose. Я написал код для генерации совокупной строки, но я ищу для управления содержимым формул.Как добавить FieldFormula в ячейку с использованием слова aspose в java
Я нашел API FieldFormula, это поле API. Можем ли мы добавить поле в ячейку?
private void prepareAggregateRow(Table table, Row headerRow, Map<String, WsAttribute> attrValueMap, List<Attribute> attrDefs) throws Exception{
Row totalRow = (Row)headerRow.deepClone(true);
for (Attribute attribute : attrDefs) {
WsAttribute wsAttribute = attrValueMap.get(attribute.getName());
Cell cell = totalRow.getCells().get(attribute.getIdx());
Run run = (Run)cell.getChild(NodeType.RUN, 0,true);
if(wsAttribute!=null && wsAttribute.getValue()!=null) {
run.setText(wsAttribute.getValue());
} else {
run.setText("");
}
}
table.appendChild(totalRow);
}
Кажется, Aspose.Words выпуск не Aspose.Cells. Удалите тег Aspose.Cells и добавьте тег Aspose.Words, чтобы сообщество Aspose.Words могло помочь вам решить эту проблему. Спасибо. – shakeel