Reply To: Javascript target footer row

#100247

It seems, that you cannot target footer rows directly?! Maybe there is an easier solution, but the following lines are working:

main();

function main() {
  var allTables = app.activeDocument.stories.everyItem().tables.everyItem().getElements();
  for (var i = 0; i < allTables.length; i++) {
    var curTable = allTables[i];
    var numberOfFooterRows = curTable.footerRowCount;
    var fRows = curTable.rows.itemByRange(-numberOfFooterRows, -1).getElements();
    var firstFooterRow = fRows[0];
    firstFooterRow.properties = {topEdgeStrokeColor: "CBOC Blue"};
  }
}

Kai

This article was last modified on December 10, 2017

Comments (0)

Loading comments...