PDA

View Full Version : change column width at run time



Anonymous
06-13-2002, 01:54 PM
Is it possible to change the column width at run time? Since you don't know the minimum column width for the number column before your calculation is done by report engine. If not can report engine be modified to take the property value and change the column width it needs based on its font settings to avoid the overlapped columns.

Anonymous
06-14-2002, 04:09 AM
Hi,

The current layout system of JFreeReport is non-existent: there is
no calculation before the report is printed. The coordinates you defined are used to print the element, if you specify coordinates outside the current band, the element gets printed anyway.

The layout system gets implemented during the next release(s), and your requirement is in the queue.

Changing the coordinates (as a quickfix) on the fly doesn't seem a good idea; if you want to form tables by placing element below each other, this automatic calculation will destroy the table.

But on the other hand, it should be not problem to implement a function that alters the bounds of the band's elements during the report processing. Sue, this is no clean or geneal solution, but it may help until there is a layout manager implemented.

Have more fun,
said Thomas

getJavaTips
05-28-2003, 04:08 AM
Hi,

How to implement a function that alters the bounds of the band's elements during the report processing. Please give me a simple example in xml. Thanks.

Best regards,
chai.