Table of Contents is not working in my template
Version: DNG 6.0.6.1 and RPE 6.0.6
I have tried all sample templates which show simple 'Table of Contents' element added to template with no additional conditions or data assignments. But they are not working for me.
I am using default word stylesheet for the document.
How can I fix this issue? Can someone provide me with some working template?
-TIA
Accepted answer
Hi Ravi,
Are you getting any headings published in your Word document refelcting the Module heading structure?
Do they have styles Heading 1,2,3 etc. ?
There is an option in RPE to automatically refresh the TOC element. Have you checked that option? If the option is not checked your TOC in the published Word Doc will be empty until you manually refresh it.
Comments
2 other answers
Are you:
a) Setting the document template you are using with an empty TOC in the doc?
b) Using the RPE TOC component?
I have used both and are currently using the empty TOC in my stylesheet doc. - I am on an older version of DNG (6.0.4) and RPE 6.0.6.1.
The second page of my stylesheet looks like this:
Table of Contents <o:p> </o:p>
No table of contents entries found. <o:p> </o:p>
Listing of Tables <o:p> </o:p>
No table of figures entries found. <o:p> </o:p>
Listing of Figures <o:p> </o:p>
No table of figures entries found. <o:p> </o:p>
Where the "No table.." is the MS Word TOC inserted. Post document delivery a F9 or document refresh will make the TOC show up.
Comments
Thanks for your answers, David and Sean.
Based on your answers, I applied styles to headings. Then I updated the TOC manually. It worked.
But applying heading styles is the second step in the template after creating TOC. How can I make it automatically refreshing/updating before publishing the document?