Page 1 of 1

RTF Table of Contents

Posted: Tue Apr 10, 2012 1:51 pm
by minamissi
Hello, I'm pretty new in rtf.
I want to create a TOC without using \\toc,
I've used hyperlinks and bookmarks to generate toc, but I dont know how to
get page number of each section. Do you have any idea? Thank you.

Posted: Tue Apr 10, 2012 7:11 pm
by Sergey Tkachenko
I assume you want to add a TOC in TRichViewEdit or TSRichViewEdit.
There is an example of building TOC in the protected forums (for registered users). If you are a registered user, please send me a private message with the details or your order (for example, email address used in it) and I'll open access to protected forums.
That example uses heading paragraphs to build a TOC, like MS Word.
However, this TOC is specially for TRichViewEdit/TSRichViewEdit. MS Word or other text editor may paginate the same document differently.