1 Reply Latest reply on Mar 23, 2013 11:04 AM by Spartypaws

    [CS3, JS] Problems with TOC

      Hi,

      I have generated the TOC by using the following code,

      var myTOCStyle = myDocument.tocStyles.add();
      var myTOCStyleEntry = myTOCStyle.tocStyleEntries.add("Title1");
      myTOCStyleEntry.formatStyle = myHeading1TOCStyle;
      myTOCStyleEntry.pageNumberPosition= PageNumberPosition.none;

      It normally works, but I want to use a paragraph style inside a paragraphStyleGroup. Anyone knows how to do it?
      tocStyleEntries.add() needs a String and I cant find the way to do it.

      Thanks in advance,
      Jose