Hello.
I'm setting the property setDirty as true, to force MS Word to update the table of contents and add the page numbers in the entries of the table of contents.
It is working, however because of the indentation and the length of the titles, for some entries the text Is being placed very close to the page number or moving randomly to the next line. Is there a way to force the text in the table of contents to add a breakline when the text is longer than some predefinido length?
For example:
1. Title 1 normal ..........2
2. This title is longer
than the previous.........4
Instead of
1. Title 1 normal ..........2
2. This titles Is longer than
the previous..................4
Thanks for your help or coments.