I am trying to generate a report in .docx format that contains a table in it using XDocReport and freemarker.
I am using a list to print the data inside the table.
The problem is there is no error in java while generating the document, but the generated document cannot be open. The error said
Word experienced an error trying to open the file.
I was expecting the output to be like this:
I am using XDocReport 2.0.2 with Office 2016. Any help is appreciated. Thank You.
So, after a few days of workaround and help from my friend, this issue was finally solved. so here is a change that I made
I added the @before-row
tag before [#list p.cities as c]
and with only a single @after-row
tag. Now, the generated document can be open