marco giudici Messages: 189 Registered: February 2013 Location: Italy
I'm starting to use docx4j in my scout application and I'm following the tutorial "Scout/HowTo/5.0/Creating Word Reports with Docx4j".
I wanted to understand if it is mandatory to start from a template created in Word, or I can create the structure of the document via source code and after save or show the result?
In the first case, how the template should be built in Word to populate a table properly?
Thanks in advance for any information and explanation who can provide me
I start with a template. In the template there are placeholders. In the code I replace the placeholders. For a table I have only one placeholder. I generate the whole table in code and replace the placeholder with this table.