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

Learn / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / Create a table with specific number of row and column with JavaScript

Viewing 3 reply threads
  • Author
    Posts
    • #1191113
      Hypons Kwok
      Member

      Is there any methods to Create a table with specific number of row and column with JavaScript ?
      I would like a to create a 10×10 table. But can’t figure out the way.

    • #14323955
      David Blatner
      Keymaster
    • #14323954
      Robert Ploch
      Member

      Hi,
      the simplest way is to draw a text frame with active blinking text cursor ( insertionPoint ) and fire this line of code from ExtendSrcript Toolkit or VS Code … :)

      app.selection[0].tables.add({columnCount : 10, bodyRowCount : 10});

      best regards
      Robert

    • #14323953
      Robert Ploch
      Member

      Thank you David for very iteresting and handy articles about table scripting … :)
      best regrads
      Robert

Viewing 3 reply threads
  • You must be logged in to reply to this topic.
>