Lyuben Ivanov
Lyuben Ivanov

Reputation: 113

How to stretch text field on multiple pages in Jasper Reports?

Scenario: I have a jasper report with multiple text fields inside a detail band. Each text field has the properties:

The details band has the property:

Current Result: When one of the text fields is taller than the page and extends to a next page, all other text fields stretch to the end of the page.

Problem: I want all text fields to be able to stretch on the next page as well. If I use the property 'Print When Detail Overflows: True' then this causes the text fields to be 'reprinted' with data duplicated. That is not my intention. I want to be able to stretch the text field to more than one page.

Thank you!

Upvotes: 5

Views: 7725

Answers (2)

martinnovoty
martinnovoty

Reputation: 893

I also have same problem and after playing whole day did not figure out anything :-(. My workaround was to set whole band to "Prevent" split type. It is not solution. Only trying to not have text fields 'reprinted' with data duplicated.

Upvotes: 2

Bnrdo
Bnrdo

Reputation: 5474

You can try setting to the field's Stretch Type to Relative to Band Height. If that didn't work, just play with those properties. I believe you can accomplish it by playing with the properties you mentioned.

Upvotes: 0

Related Questions