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

using japser-reports for printing a contract


susanne_j
Go to solution Solved by Thomas Zimmer,

Recommended Posts

Hello,

I am trying to use jasper-report for printing a contract. It might not be an ideal solution for that, but I like the possibilities to save the result to different formats like PDF, MS-Word and so on.

This is the way, I currently desinged the report: I have a Title-page with the definition of both partners and then, for each page of the contract, I have an own Detail-Band. I use for the pages only parameters which are handed over to the report via a hashmap in the fillreport call. Everything works fine so far (beside the fact, that the pagebreaks are somehow "hardcoded" via the change from one detail-band to another...) (If you can suggest a better solution, I would be happy to hear...)

My current challenge is, on the page before the last page, I would like to print some special-agreements. The number of the special-agreements are variable and so I would like to have them printed continiously on the pages until they end... Therefore I instantiated a JRMapCollectionDataSource and another detail-band with the fields. (But now, the contract is completly printed for each special-agreement.

What would be  a good solution to design this? Should I design a subreport for the special-agreements? (And excuse that question, how do I have to fill the subreport with the data? - I haven't used subreports before...)

Thanks in advance, would be nice if you could help me.

Susi.

Link to comment
Share on other sites

  • Replies 2
  • 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...