| View previous topic :: View next topic |
| Author |
Message |
DelphaX General User

Joined: 13 Oct 2004 Posts: 6
|
Posted: Thu Dec 02, 2004 2:42 am Post subject: Trouble with Table headers |
|
|
Hi,
I'm currently trying to find a way to create "elaborate" table headers with OpenOffice Writer as in the example below :
| Code: | ----------------------------------------------
| Table title |
|--------------------------------------------|
| ColHeader1 | ColHeader2 | ... | ColHeaderN |
|============================================|
| ColData1-1 | ColData2-1 | ... | ColDataN-1 |
|--------------------------------------------|
| . |
| . |
| . |
|--------------------------------------------|
| ColData1-P | ColData2-P | ... | ColDataN-P |
---------------------------------------------- |
What I'd like to have is that the first 2 rows (Table title AND ColHeaders) repeat on the top of each page. I have already tried to create a (P+1)xN table, merging the first row cells, then splitting horizontally to create the ColHeader row which I split in N columns, but it only repeats the Table title row, though the ColHeader row's style is Table Heading.
I've also tried to create a (P+1)x1 table, same operations as above, without the first merge, but it doesn't work either. Does somebody have a solution for this or it is, as I'm beginning to think, totally impossible ? |
|
| Back to top |
|
 |
RGB Super User


Joined: 25 Nov 2003 Posts: 1743 Location: In Lombardy, near a glass of red Tuscany wine
|
Posted: Thu Dec 02, 2004 5:33 am Post subject: |
|
|
| If you first create the table with the default tools, then select the first row and finally split it in two (or more), the whole set of rows are considered as "headers", so they replicate themselves in every page. The problem is that you cannot merge the cells of the first row into only one cell, so, in order to obtain what you want, the only workaround I can think of is erase the lines between those cells, and write the title in the middle cell |
|
| Back to top |
|
 |
DelphaX General User

Joined: 13 Oct 2004 Posts: 6
|
Posted: Thu Dec 02, 2004 5:43 am Post subject: |
|
|
| I already tried that too, but then there's another problem : if the Table title is too long to fit in the cell's width, it wraps on the next line and I don't want that to happen. What's more, if the text wraps on the next line, only the cell containing the title changes height. The other cells on the "first row" don't change and it messes up the whole header. |
|
| Back to top |
|
 |
RGB Super User


Joined: 25 Nov 2003 Posts: 1743 Location: In Lombardy, near a glass of red Tuscany wine
|
Posted: Thu Dec 02, 2004 6:04 am Post subject: |
|
|
There is another workaround: if you insert a text box from the draw tools, and anchor it to a paragraph in the first cell, you can change the dimension of it to fill the whole first row, and insert the text you want, with the format you want. Also, it repeat itself in every page.
For some reason, I can't do the same with frames, but text box could work, I hope.
Good luck |
|
| Back to top |
|
 |
cwchia Super User


Joined: 09 Jan 2003 Posts: 1050 Location: Malaysia
|
Posted: Thu Feb 24, 2005 6:39 pm Post subject: |
|
|
| RGB wrote: | | If you first create the table with the default tools, then select the first row and finally split it in two (or more), the whole set of rows are considered as "headers", so they replicate themselves in every page. The problem is that you cannot merge the cells of the first row into only one cell, so, in order to obtain what you want, the only workaround I can think of is erase the lines between those cells, and write the title in the middle cell |
This is solved in 1.9.79.
I can have complex header like this:
row 1 : 1 column
row 2 : 3 columns
row 3 : 2 columns
all irregular width |
|
| Back to top |
|
 |
|
|
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
|