On 18.12.18 16:46, paoim101084 wrote:
Yes, I have two issues when I used XSLFTable.
1. Display text does not fit with column.
For example, less text should display in small column. long text should
display in big column.
2. Calculate table's height, so I can display two or more tables in the same
slide.
I mean after display one table and then need to display second table.
Great if you can help.
@1. that was the too much effort part. Opposed to Excels "find optimal width for one
column", which doesn't change the size of the other columns - I would need to change
the other columns width in case of long texts.
This is similar to FOPs table layout <auto> ... Maybe having one auto column (e.g. width
= "*") could be done,
but you also need to consider hyphenation for text spanning more than one line
when doing this.
Long story short, this is not on my todo list.
@2. I'll check, what I can provide here on POIs table API. this will be
something similar to your calculateTableHeight method, i.e. extended the anchor
height after a row was added to the table.
Andi
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]