On Wednesday 01 November 2006 06:26 am, Asya Atanasova wrote:
> Hello
> i have one problem which i really cant understand how to solve.
> I am using OpenOffice.org 2.0.3. In openoffice.org writer i am
> making a document. There is a table with header of 2 rows and there
> r also 2 cells merged ... but merged vertically (two cells of one
> column r merged, only this cells the others r normal) . from the
> code i am adding new rows as much as is necessary. Everything is
> ok for all kind of open office docs except of these where exist
> this kind of merge. For example if the merge is horizontally
> everything is ok! i debug it and i saw that the problem is exactly
> when i am trying to insert another row in the table. Finally the
> count of the rows nevermind how much i tried to add is the same. i
> am inserting rows in this way:
>
> com.sun.star.table.XTableRows rows = xTable.getTable().getRows();
> rows.insertByIndex(rows.getCount(), newRowCount);
>
> Please help me if u r able .
> Tnanx a lot
It sounds like you are modifying a row or column that contains a
merged cell. OOo will not let you do this. You must first unmerge the
cells, make changes to your row(s) or column(s), and then remerge the
cells.
Dan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]