I've been looking through the code and samples and haven't found what
I'm looking for.
Maybe someone can help, or give me an example.
I need to open an ODT file and
1. Replace key words with new values (global search/replace).
2. If certain key word(s) present in a TABLE, replace them with new
values, and possibly insert new rows into the table.
I have found:
getDescendantByName("table:table", "Table1")
but that won't allow me to scan all tables in the document.
Once I locate the tables, it looks like I can use
duplicateRows(start, count, copies)
followed by:
table.getCellAt(0, 1).setValue("xyz");
to update the values. Is that correct?
Then saveAs (File f) to write out the result.
Thanks!