Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Create a table with specific number of row and column with JavaScript

Return to Member Forum

  • Author
    Posts
    • #1191103
      Hypons Kwok
      Member

      Is there any methods to Create a table with specific number of row and column with JavaScript ?

    • #14323944
      Masood Ahmad
      Participant

      No script is needed for this. Use the InDesign’s default Insert Table command from the menu.

    • #14323932
      Qing Youguo
      Participant

      Select a textframe or a insertionpoint, and run it:

      // Create a tbale whith specific number of row and column
      if(app.documents.length !== 0 && app.selection[0].hasOwnProperty(“insertionPoints”)){
      app.selection[0].tables.add(LocationOptions.AFTER, app.selection[0].insertionPoints[0], {
      bodyRowCount: 8,
      columnCount: 6,
      footerRowCount: 0,
      headerRowCount: 1
      })
      }

Viewing 2 reply threads
  • You must be logged in to reply to this topic.
Forum Ads