I've been asked to add a TOC to a document generated dynamically combining together a set of existing documents. Nothing strange so far.
Next request was to add a TOC to the generated document: again, everything worked, simply adding a TOC field to the final document, and adding TC field when needed when importing child documents..
Final improvement was to customize the formatting of the generated TOC, eg
- set part of the entry in bold
- use different font sized for text and page numbe
Now I tried a couple of different approaches, all failed
- initially, I tried to find the text assigned to TC fields, and apply requested formatting to the returned text; but the returned seletion refers to the TC fields themselves, not to the text in the TOC, so custom formatting is set for the TC field, not the generated TOC text
- then I though I could generated the TOC manually, using the requested formatting, and searching for each TC fields to get the correct page index, but I found this information (the page index) is not available
Have you got any suggestions?
Or is this simply an unsupported scenario?
Thanks