Closed crc16 closed 8 years ago
Hi crc16,
If you have existing cell (row or column) with style you want, it's better to copy styles.
table = Table(..) #Some existing table#
# col1, row1 - existing cell coordinates
cell1 = table[(row1, col1)] # Existing cell with style
# col2, row2 - new cell coordinates
cel2 = table[(row2, col2)]
cell2.set_value('New cell')
cell2.style_name = cell1.style_name
table.row_info(row2).style_name = table.row_info(row1).style_name
table.column_info(col2).style_name = table.column_info(col1).style_name
Something like this.
Hi T0ha Ok, that works very well Thank you
Happy to help you.
Hello, I would like to add a table in a odt file with columns with precise dimensions using existing styles in this file as already done for an existing table.
I can assign a style to a cell in a table creates :
So how can I assign a style in the columns?