JalalSordo Posted May 19, 2013 Share Posted May 19, 2013 Hello,I would to know the way how you can print a basic model made of parameters (no database connection used) in i report 4.6.0 as showen in the image below.Thank you. Link to comment Share on other sites More sharing options...
Solution Thomas Zimmer Posted May 19, 2013 Solution Share Posted May 19, 2013 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, Thomashttp://www.thomaszimmer.net Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now