Issue 1
=========================
I am adding TOC to the document being generated. TOC is updated fine. But if the Header items in TOC are short , say less than 5 chars then the Header and Page number are getting merged.Please find the attached document (document.docx) for example.In the TOC : If you see the "Fees" it displays as "Fees7" , along with the page number. For other Headers it is working fine. If i add one more char to Fees then it is aligned properly.
My Code is as below:
builder.ParagraphFormat.StyleName = "Contents title";
builder.Writeln("Contents");
builder.InsertTableOfContents("\\o \"1-1\" \\h \\z \\u");
==========================
Issue 2
There is lot of space that is being occupied after "Contents" ... i.e .. between "contents" and TOC.
and also after TOC, there is much space occupied. Is there a way to cut this space? Also will it be possible to decrease the space between each header in the TOC?
Thanks in advance.