silvana82 Newbie

Joined: 16 Nov 2005 Posts: 1
|
Posted: Wed Nov 16, 2005 7:42 am Post subject: Add row in table contains merged or splitted cells |
|
|
Hello, I have a problem.
I can`t insert rows to the end of a table using XTextTable interface, if the table header has merged or splitted cells.
I am using the code written below.
It works if there are no merged or splitted cells in the table header.
The given parameters in this method are not null.
/**
* Add new rows to the end of the specified table
* @param xTable The given table
* @param rowToAdd Number of row to add
*/
public static void insertRow(XTextTable xTable, int rowToAdd) {
com.sun.star.table.XTableRows rows = xTable.getRows();
rows.insertByIndex(rows.getCount(), rowToAdd);
}
Can anybody help me? |
|