开发者

How to truncate data (avoiding page break) in iReport?

I have a listing that must fit in a page. Instead of the default page break behaviour, I need iReport to truncate the listing when it goes over the page size. Any ideas?

Thanks!

EDIT:

I've had omitted that I still need pagination enabled, because I need a sequence of one-page listings, one after another.

I have a group -- breaking pages by costumer -- and each page should have a listing of costumer related items (generated inside the group) that cannot span over more than one page.

When Jasper finds the next costumer, it should break the page and st开发者_Python百科art a new one-page listing.

What I really need, then, is a means of avoiding page breaks inside this group only. Anyone?


Open up the properties of the page in IReport by clicking the root of the report in the Report Inspector window and there is a tick box Ignore Pagination.

Tick that and should limit your report to one page.

Edit: If you create subreport for your customers you can also select Ignore Pagination, which would mean customer would only be one page in size.

Try using a Break from Palette window either.


After your edit, i think you better make a subreport called Customer. The subreport will be "pagination ignored" and so will be limited to one page, while the parent report won't. In that case the parent report (all customers) will call the next customer record and render it in the subreport.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜