Thread

Posted on Mon Nov 27 14:11:55 2006 by dorian33
oowriter, tables copying
Hi.Is there any simple method to copy tables from two documents into the third one? I've found the big problem concerned with styles - the copied tables looks awfully. Borders, the column, row and cells sizes are lost.
Direct Responses: 3627 | Write a response
Posted on Mon Nov 27 16:37:36 2006 by jmgdoc in response to 3624
Re: oowriter, tables copying
Table replication from a document to another one is a nightmare unless you work with previously created document templates !
Every single table can use a lot of different styles (a table style, some column and row styles, and possibly a lot of individual cell styles). These styles are mostly automatic styles, so one can't easily retrieve them by name.
The target document of a table copy should have been created from a template document, previously created using OpenOffice.org, and including template tables with the convenient layout.
Direct Responses: 3628 | Write a response
Posted on Mon Nov 27 17:24:04 2006 by dorian33 in response to 3627
Re: oowriter, tables copying

Well, it seems as I thought

I need to join several documents into the one 'report'. Whole the text (paragraphs) I can reformat into the same style. But since the source documents contains tables with different (and unknown) formatting I need to do exact copy of the tables unless I want to loose tables readability. Sp no templates are possible.

I know that it is a problem. I though I was able to copy and 'rename' all the automatic styles into the 'report'. But after copying only one source document with a table into the 'report' document (no automatic style naming collision) I looked at the 'styles.xml' files of source and destination. Looks the same (if the order of attributed doesn't matter) but the borders in the resulting document disappeared!.

If you are able (and want) to help me please look the the following lines:

<style:style style:family="table-cell" style:name="Table1.A1">
<style:properties fo:border-bottom="0.0069inch solid #000000" fo:border-left="0.0153inch double #000000" fo:border-right="none" fo:border-top="0.0153inch double #000000" fo:padding-bottom="0inch" fo:padding-left="0.0597inch" fo:padding-right="0.0597inch" fo:padding-top="0inch" fo:vertical-align="top" style:border-line-width-left="0.0007inch 0.0139inch 0.0007inch" style:border-line-width-top="0.0007inch 0.0139inch 0.0007inch" style:writing-mode="lr-tb"/>
</style:style>

For me it should mean that the cell HAS to have the border. Especially that it looks like respective line in the source document. But it hasn't!

Why?

I realize that the oo styles are very complicated and probably I do not know something...

But what?

Write a response