3 Replies Latest reply on Nov 13, 2009 1:58 AM by Oviya...


    Oviya... Level 1

      Hi All,


      what are all the parameters for createTOC()?

      createTOC() method is not working for ID CS2

        • 1. Re: createTOC()
          AdobeScripts Level 3

          from VB6 ObjectBrowser:


          Function CreateTOC(Using As TOCStyle, [Replacing As Boolean = False], [FromBook], [PlacePoint], [IncludeOverset As Boolean = False], [DestinationLayer]) As Objects
               Member of InDesign.Document
               Create a table of contents for a document or book

               Return value: The created table of contents

               Using: The table of content style to use

               Replacing: Whether to replace the existing TOC

               FromBook: The book from which to create the TOC as Book

               PlacePoint: The point at which to place the TOC as Array of 2 Units (Doubles or Strings)

               IncludeOverset: Whether to include overset text in the TOC

               DestinationLayer: The layer on which to place the TOC as Layer





          • 2. Re: createTOC()
            Oviya... Level 1

            Thanks ROBERT

            • 3. Re: createTOC()
              Oviya... Level 1

              Hi Robert,


              Here what is destination layer. How to create. if createTOC() call where i can place the content.