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

Recommended Posts

By: Marc - knorki

Page Breaks

2002-08-28 01:31

HI

 

I started using JasperReports yesterday and already achieved some remarably fine results... Thanks for this tool I think its far more usable than jfreereport at the moment.

 

But can any of you tell me how i could force an page break inside an section e.g. <detail>. I read somewhere in the forums that i have to create some kind of speciakl groups for that. is there an example??

 

I need this because i will include several pictures for every dataset, and so some sections won't fit the pageheight.

 

thanks for help

 

Knorki

 

 

By: Teodor Danciu - teodord

RE: Page Breaks

2002-08-28 02:13

 

Hi,

 

Someone else had the same problem and found

a nice solution for it.

There is no way we could introduce page breaks

into sections using a special element or things

like that.

 

But if it is about allowing the detail section to have

a height bigger that one page, you could simulate

such a special detail section using the headers

and footers of some dummy groups.

 

You can define as many dummy groups as you

want to. In order for them to break with every row in

the data source, the group expression should be

based on the default "REPORT_COUNT" variable,

which changes with every row.

 

Having those group headers and footers

accompanying every detail section, you can

distribute the detail elements on multiple section.

You put some elements in the dummy group

headers, some of them in the normal detail and the

rest in the group footers. They will act like a big

detail.

 

http://sourceforge.net/tracker/index.php?func=detail&aid=567012&group_id=36382&atid=416704

http://sourceforge.net/tracker/index.php?func=detail&aid=571056&group_id=36382&atid=416704

http://sourceforge.net/tracker/index.php?func=detail&aid=571140&group_id=36382&atid=416704

 

There will be also other ways to achieve the same

effect, but starting with the next version that I'm

preparing these days.

 

I hope this helps.

Teodor

 

 

 

By: Marc - knorki

RE: Page Breaks

2002-08-28 04:32

HI thanks for the fast answer :-)

 

I will try this :-) and i am really looking to your next version ... great work

 

Knorki

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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...