Okay - for the first solution I did as follows:
1) for each row of data
1.1) for each field
1.1.1) count the number of characters
1.1.2) keep a running maximum
2) finally you have an array of maximum sizes where each index
corresponds to a column, e.g. List<Integer> maxes;
3) for each cell column
3.1) set the width to the maximum using the unit EM.
Note: this is likely to make the column a little bigger than required.
You can also try the Unit EX
HTH
On Oct 14, 2:13 pm, misko237 <
misk...@gmail.com> wrote:
> I have tried with first solution, but I couldn't manage to read real
> cell element width. Did you succeed? Second solution is not an option
> for me.
>