aspose word java APIを使用してテーブルに式を追加する方法はありません。 集計行を生成するコードを記述しましたが、式コンテンツ制御に関連する検索を行いました。Javaでaspose wordを使用してFieldFormulaをCellに追加する方法
API FieldFormula、このフィールドAPIが見つかりました。 Cellにフィールドを追加できますか?
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.Wordsのタグを削除し、Aspose.Wordsタグを追加してAspose.Wordsコミュニティがこの問題の解決に役立つようにしてください。ありがとうございました。 – shakeel