what I need to do is dynamically set the column width: something like
ColumnBuilder builder = ColumnBuilder.getNew().setWidth(x);
but I don’t really know what x is when a report is generated. This "report template" will be used in many different queries, and I don’t know what the length of the fields will be.
If you use the builder without setting the width, all columns have the same width, even if the fields in one column have, for example, 200 characters and the other 1. (I do not want to have 50 rows in one column)
I'm trying to use some kind of view structure containing the maximum length for each column, but I don't like this solution, and the code is a bit unpleasant :)
Thanks for the help.
source
share