For example, if I put values in node PC’s summary, can I sum them up in m2doc?
For example, can i get the sum value 6(1+2+3) in the generated document?
Another question, can I generate the author of the msword in m2doc?
For example, if I put values in node PC’s summary, can I sum them up in m2doc?
For example, can i get the sum value 6(1+2+3) in the generated document?
Another question, can I generate the author of the msword in m2doc?
You can use the sum() service on a collection of numbers:
Sequence{1, 2, 3, 4}->sum()
You can’t generate the author dynamically with M2Doc. You can set it statically in your template by editing the author with MS Word.
You can change it using Apache POI:
XWPFDocument.getProperties().getCoreProperties().setCreator()
You could use this code to write your own service and then call it. I opened an issue to add services to edit document properties: