Jump to content
We've recently updated our Privacy Statement, available here ×

stretching does not work in group headers


Recommended Posts

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

Link to comment
Share on other sites

  • 3 years later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...