How to update a table format with a script
Hi,
I have an ExtendScript script which changes the language of all paragraphs.
It also changes the language of those paragraphs which are in tables.
Now I also want to change the table formats so that they contain the paragraphs with the changed language and not with the old language.
However, my script deletes somehow all table formats!
What I do:
For each table format add a new table.
Then the language of all paragraph formats is changed and imported into the file.
Now update the table formats.
for (var li = 0; li < faArrayTables.length; li += 1) // faArrayTables is an array with all these new tables.
{
loTable = faArrayTables [li];
laProps = loTable.GetProps ();
loTblFmt = foDoc.GetNamedObject (Constants.FO_TblFmt, loTable.TblTag);
loTblFmt.SetProps (laProps);
}
loTblFmt.SetProps deletes all table formats!
I guess that I cannot just transfer the properties of an existing table to a table format. And this deletes the table.
How can I update the table format of a table?
Best regards, Winfried

