stretching does not work in group headers

By: Dominique Ule - d-une
stretching does not work in group headers
2003-12-02 04:44
Hi!

Using JasperReports 0.5.0 I noticed that it is not possible to automatically stretch text fields in group headers. The stretching works very well in the detail band though.

I have one text field in a group header that might contain very long text. Its positionType is Float, isStretchWithOverflow is set to true.
Below are two labels whose positionType is FixRelativeToBottom. I want the bottom labels to be moved downwards as the text field's height grows.

Is there any workaround or fix available?


Thanks in advance,
Dominique




By: Teodor Danciu - teodord
RE: stretching does not work in group headers
2003-12-02 12:19

Hi,

It works also in group headers.
But only for evaluationTime="Now".
The only sections where stretching does not occur
are the page and column footers, which are always of
a fixed height.

I hope this helps.
Teodor





By: Dominique Ule - d-une
RE: stretching does not work in group headers
2003-12-03 01:47
Thank you!

I spent 3 hours yesterday trying to get it working...

The evaluationTime was set to the corresponding group.

What reason is there to only enable stretching when evaluationTime is now?

Dominique




By: Teodor Danciu - teodord
RE: stretching does not work in group headers
2003-12-03 03:11

Hi,

This is because if the value in the text field will
be known only later, we cannot go back to stretch
the text field.
Such stretch could affect parts of the final docment
that we have already rendered.

This is how JasperReports works and the
"evaluationTime" attribute should be seen more like
a bonus feature, useful in certain cases.

Thank you,
Teodor
2002 JI Open Discussion's picture
Joined: Aug 10 2006 - 3:28am
Last seen: 16 years 7 months ago

1 Answer:





Hi,

Is there any solution for that? I also have the same issue. In group header I want to show the details, but its Evaluation time is not Now, How we can stretch it to show the full details. Pls help
dskdsk's picture
45
Joined: Feb 26 2010 - 11:27pm
Last seen: 13 years 1 month ago
Feedback