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

How to print a model made of parameters for a number of times.


JalalSordo
Go to solution Solved by Thomas Zimmer,

Recommended Posts

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

  • Solution

You cannot use the detail band, if you do not have a set of datarecords to print. Instead set the report property "When no data type" to "All sections, No detail" and use the title or summary band to layout your single value parameters.

If you want to print a collection of records in your report, you could use a collection of java beans (representing a record set) as a datasource:

new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($P{MyBeanCollection})

Of course, you will have to build the bean collection first outside the report...

Cheers, Thomas

http://www.thomaszimmer.net

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