How to configure Jasper Reports for report generation - imona/tutorial GitHub Wiki

Welcome to our new tutorial.

Here we are going to introduce top notch practises of Jasper Reports like building lists and other less minor ones like fields and tricky configurations yet important ones.

  1. Configurations Images is as below: Select two or more fields and go to advanced Open project properties, advanced

  2. Jasper Side You should use "Details" pane in Jasper. Please narrow down other fields for wider usage otherwise the values will repeat in each page. Other important concept is repeating values. This kind of data represented as tables. Please create a field which refers your Imona entity list with the same name and refer your table with this entity using in the table expressin following text: new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{entity_list})

Also create a new dataset which table refers. Dataset should refer to entity list's sub-entity which may include name, surname, address and intuitively entity list contains theses entities. An image simplifes the problem: 3. Imona Side You should follow the above explanations intuitively. You must have three entity.

  • a.File containing file field.
  • b.Main entity included in main module which has a entity list
  • c.The ingredients of entity list as an entity with e.g. name, surname fields
    The code of the click button is as follow: "query("from 'file entity module name')[0].'the file name repr. on imona'