Support
Quality
Security
License
Reuse
kandi has reviewed xdocreport and discovered the below as its top functions. This is intended to give you an instant insight into xdocreport implemented functionality, and help decide if they suit your requirements.
Get all kandi verified functions for this library.
Get all kandi verified functions for this library.
XDocReport means XML Document reporting. It's Java API to merge XML document created with MS Office (docx) or OpenOffice (odt), LibreOffice (odt) with a Java model to generate report and convert it if you need to another format (PDF, XHTML...).
QUESTION
XDocReport: generated docx document error "Word experienced an error trying to open the file"
Asked 2021-Sep-21 at 01:36I 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.
ANSWER
Answered 2021-Aug-09 at 11:05I guess (without knowing XDocReport) that [#list p.cities ...]
should be prefixed with @before-row
too. Otherwise when you iterate for the cities, the start-tags of the table row will not be repeated, only the end-tags.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
No vulnerabilities reported
Save this library and start creating your kit
See Similar Libraries in
Save this library and start creating your kit
Open Weaver – Develop Applications Faster with Open Source