Jump to content

Report com 2 ou mais paginas


mariel.o.feitosa

Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Where is the problem - don't understand what the real problem is? If you create a query from a database let's say SELECT id, date, customerno FROM orders  

and you place each field $F{id}, $F{date} and $F{customerno} into the DETAIL BAND of your jrxmal, then the report will render per record one detail. Let's say 20 records will fit to one page and you have 100 records.... well then 5 pages will be rendered! So this is normal JasperReports is working.

If you need some static stuff you can use several "DummyGroupsBands" (a group without any expression)... there it is possible to define x-GroupHeaderBands that are let's say 802 pixel in height (so A4 = 842  - 2x20px for top/bottom margins) there you could place some static stuff independently of your query results. So assume you need 2 full sized pages you could create to groupheader bands (each 802px in height) and place your static stuff inside. (by default the sum of all default band heigths are not allowed to be larger than the page height itself - EXCEPT group headers/footers!) That's the trick!

hth + regards

C-Box

Link to comment
Share on other sites

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