Inserting Table of Contents


#1

Hi,

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

Cheers....


#2

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.


#3

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?

Thanks

Darryl


#4

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

http://www.aspose.com/Community/Forums/18509/ShowPost.aspx