Inserting Table of Contents



Is it possible to insert the Table of Contents anywhere in a file not just at the beginning?



Yes, using the DocumentBuilder.InsertTableOfContents method, you can insert TOC at the current position of the DocumentBuilder, which can be set by DocumentBuilder.MoveTo method anywhere in the document.


I see in the documentation that the TOC will not be displayed when document is initally opened, is this correct? If so is there any way to have to TOC generated and displayed the first time the document is opened?




Unfortunately right now there is no way of doing this. Check the following thread for possible workarounds: