Thread

Posted on Thu Nov 3 22:45:37 2005 by bob
Adding columns to tables
Hi,

Is there a method to add a column to an existing (formatted) table, eg a table taken from a template document ?

Thanks.

bob
Direct Responses: 1282 | Write a response
Posted on Fri Nov 4 00:58:50 2005 by jmgdoc in response to 1281
Re: Adding columns to tables

There is no direct method to add a column in a table with OpenOffice::OODoc.

In the OOo/ODF XML, a table is made of rows, and a row is made of cells. The role of the column XML elements in a table is to bear some common layout data.

The best practical way to append a column is an explicit loop which appends a cell to each row, and the replication of the last column element.
Write a response