1 Reply Latest reply on Dec 7, 2015 11:42 PM by sarfrazm7834471

    Row 1 columns not merging with Row 2 columns in InDesign Script

    sarfrazm7834471 Level 1

      This is my code:-

       

      var myTable = myTableFrame.insertionPoints[0].tables.add({columnCount:3, headerRowCount:1, bodyRowCount:2}); 

      myTable.rows[0].cells[0].contents = "A";

      myTable.rows[0].cells[0].merge(myTable.rows[1].cells[0]);

       

      But:- Below line working:-

      myTable.rows[0].cells[0].merge(myTable.rows[0].cells[1]);

      myTable.rows[1].cells[0].merge(myTable.rows[2].cells[0]);


      ------------------------------------------------------------------------------

      Problem is that, Column 1 & 2 of Row 1 merging

      and Column 1 of Row 2 & 3 merging

      but, Column 1 of Row 1 & 2 not merging and no columns of Row 1 merging with Columns of Row 2

      Anyone can help me Please.....

      Thanks...