How to pass ArrayList to JasperReports?

后端 未结 3 2153
臣服心动
臣服心动 2020-12-18 05:23

I\'m new to JasperReports. I want to pass ArrayList to subreport of subreport.

I have master report which contains one subreport1 and this

3条回答
  •  半阙折子戏
    2020-12-18 05:48

    You can do it using lists and/or subreports, datasources and JRBeanCollectionDatasource.

    Check this example:

    http://siempredesdeelcurro.blogspot.com.es/2013/06/jasper-reports-crear-report-utilizando.html

    It's in Spanish, but by your name I guess you will be able to read it ;)

    For non Spanish speakers you still can use it as at the end of the tutorial you can find the XML with the jrxml templates.

提交回复
热议问题