Issue 126 in xdocreport: Table of contents not updating for content not shown

139 views
Skip to first unread message

xdocr...@googlecode.com

unread,
Jul 2, 2012, 3:59:45 PM7/2/12
to xdocr...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 126 by xnix...@gmail.com: Table of contents not updating for
content not shown
http://code.google.com/p/xdocreport/issues/detail?id=126

What steps will reproduce the problem?
1. Run TableOfContentsTest in attached zip file
2.
3.

What is the expected output? What do you see instead?
As the developer object is null, the page headed "developers" is not shown
which is correct. The table of contents at the top of the page does not
update to reflect this and instead still lists developers as being on page
3.

What version of the product are you using? On what operating system?
0.9.7 with freemarker on Windows 7.

Please provide any additional information below.
It would be great if is was possible as a lot of reports I do only includes
certain pages when lists and objects are not null.


Attachments:
src.zip 25.7 KB

xdocr...@googlecode.com

unread,
Jul 3, 2012, 7:18:56 AM7/3/12
to xdocr...@googlegroups.com
Updates:
Status: Accepted
Owner: angelo.z...@gmail.com

Comment #1 on issue 126 by angelo.z...@gmail.com: Table of contents not
Hi,

This issue is the same than
http://code.google.com/p/xdocreport/issues/detail?id=115 (it's for ODT).
I'm afraid it's not possible. I don't know how to manage that, because
table of content is generated by MS Word (you should refresh the table of
content with MS Word).

Perhaps an idea is to write macro linked to the docx which refresh the TOC
(see
http://superuser.com/questions/51268/how-to-make-a-table-of-content-auto-update)?

Regards Angelo



xdocr...@googlecode.com

unread,
Jul 3, 2012, 8:08:24 AM7/3/12
to xdocr...@googlegroups.com

Comment #2 on issue 126 by xnix...@gmail.com: Table of contents not
Ok thanks. Not sure I can go down the macro route as I will be doing a PDF
conversion after the DOCX is generated. The solution I have come up with in
the mean time is to create my own contents page and use book marks and the
pageRef field with each line wrapped in the same if statement used to
show/hide a particular section.

xdocr...@googlecode.com

unread,
Aug 7, 2014, 9:02:43 PM8/7/14
to xdocr...@googlegroups.com
Updates:
Status: Duplicate
Mergedinto: 115

Comment #3 on issue 126 by angelo.z...@gmail.com: Table of contents not
(No comment was entered for this change.)

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

wdah...@enjeudigital.com

unread,
Mar 16, 2017, 10:03:51 PM3/16/17
to xdocreport, codesite...@google.com, xdocr...@googlecode.com
can you please tell me how did you solve the issue? with bookmark and pageref i have the auto update issue :/

thanks.
Reply all
Reply to author
Forward
0 new messages