Manipulate TextTable
Posted: Thu Oct 30, 2008 11:00 am
Hi. I want to manipulate a texttable in a textdocument. Therefore I read the dev-guide, but didn't get a view right now. Has anybody some codesnipe for orientation? At time I have the following code:
XTextTablesSupplier xTSupplier = (XTextTablesSupplier)UnoRuntime.queryInterface(XTextTablesSupplier.class, this.ooDoc);
XNameAccess xNameTextTables = xTSupplier.getTextTables();
Object textTable = xNameTextTables.getByName("table_statistics_hiddensheets");
XTableRows xTRows = (XTableRows)UnoRuntime.queryInterface(XTableRows.class, textTable);
Now how can I iterate from row to row and cell to cell? I know that cell are adressed in a row like "A1, B1, ..." but how can I get access to the cells?
Regards
Hardie
XTextTablesSupplier xTSupplier = (XTextTablesSupplier)UnoRuntime.queryInterface(XTextTablesSupplier.class, this.ooDoc);
XNameAccess xNameTextTables = xTSupplier.getTextTables();
Object textTable = xNameTextTables.getByName("table_statistics_hiddensheets");
XTableRows xTRows = (XTableRows)UnoRuntime.queryInterface(XTableRows.class, textTable);
Now how can I iterate from row to row and cell to cell? I know that cell are adressed in a row like "A1, B1, ..." but how can I get access to the cells?
Regards
Hardie