opensagres / xdocreport

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...).
https://github.com/opensagres/xdocreport
1.21k stars 372 forks source link

Update table of contents (Word) #270

Open martos93 opened 6 years ago

martos93 commented 6 years ago

Hi, I have dynamic tables on my word template, and when I fill all the fields of the template it generates about 3 extra pages on my template. Table of contents doesn't update page numbers. How can I fix this?

Thanks.

angelozerr commented 6 years ago

Table of contents doesn't update page numbers. How can I fix this?

You cannot. Page number are managed with MS Word, it's not a static field if I remember.

shivajain03 commented 6 years ago

Hi @angelozerr, I bileave there has to be some way to generate page numbers with table of contents dynamicaly. Otherwize one can not be able to generate or add page numbers in his ODT template. In my case I am able to generate all the table of contents with correct linking with corresponding page. The problem is the page numbers are not getting generated with it. Let me know your inputs on this.