2 Replies Latest reply on Jan 30, 2013 6:56 PM by Bill joy

    How create toc using [Basic Paragraph] ?

    Bill joy Level 1

      Hi Experts,


      I want to crate TOC using  [Basic Paragraph].

      I have only default paragraph style (No new paragraph style created by me).

      I try :


      var myTOCStyle = myDocument.tocStyles.add();

      myTOCStyle.name = "NewTOCStyle";

      myTOCStyle.createBookmarks = true;

      myTOCStyle.title = "Contents";


      //var ParaStyle= myDocument.paragraphStyles.item(0).name;


      //  myTOCStyle.tocStyleEntries.add( "[Basic Paragraph]");