Add table of contents to RTF document
        Posted  
        
            by Anurag Uniyal
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Anurag Uniyal
        
        
        
        Published on 2009-07-08T10:55:28Z
        Indexed on 
            2010/04/08
            4:03 UTC
        
        
        Read the original article
        Hit count: 621
        
rtf
|tableofcontents
I am trying to generate a RTF document by hand and eventually will do it programtically. I plan to improve pyRTF so that it can generate "Table of contents", which I think it can't.
I am not able to use RTF controls words (\tc, \tcf and \tcl.) to generate a TOC. http://msdn.microsoft.com/en-us/library/aa140283(office.10).aspx gives details about TOC but I couldn't find or make any example RTF which have a TOC.
So is there a simple sample showing a RTF with TOC?
© Stack Overflow or respective owner