Hi ARIS Community
When I try to create a TOC in my report the page numbers a not updated, I have to do it manually in word.
I use the
outFile.SetAutoTOCNumbering(true);
but it does not seems to work.
Have anyone got this to work?
Regards Fredrik
Hi Fredrik,
do you use ARIS 9 or ARIS 7.2?
In ARIS 7.2 the standard report output object "tries" to tell MS Word to update the TOC field, but Word does not do it. By adding the following line to your script before creating the output object, the ARIS Report will use a different implementation of the output object:
Context.setProperty("use-new-output", true)
This will update TOC field correctly.
BR, Torsten
Hi Torsten
Thanks for your reply! I am using ARIS 7.2 and when I add the
Context.setProperty("use-new-output", true);
the TOC updates the page number correct but the layout on the report becomes strange the table cell background color doesn't fill up the hole cell only behind the text and the placement of the cells is mixed up.
Best Regards
Fredrik