I have found the solution: I will send you an e-mail with the necessary files to work the test.
I dont write the solution because it is a little large. In addition a odt file is necessary. If somebody want the files, I can send you it. Cheers. On 17 ene, 17:23, James Conner <[email protected]> wrote: > 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!
