OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Add row in table contains merged or splitted cells

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Writer
View previous topic :: View next topic  
Author Message
silvana82
Newbie
Newbie


Joined: 16 Nov 2005
Posts: 1

PostPosted: Wed Nov 16, 2005 7:42 am    Post subject: Add row in table contains merged or splitted cells Reply with quote

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?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Writer All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group