JasperReports collection as datasource?

后端 未结 1 618
臣服心动
臣服心动 2021-01-15 17:23

I\'m trying to find out how to use a string collection as a datasource in JasperReports.

I guess I found the solution, but I can\'t get this to work, can anyone assi

1条回答
  •  离开以前
    2021-01-15 17:38

    I guess your hack of using JREmptyDataSource is good by definition, if it works.

    But you'll find that things are lot easier if you use this instead:

    new net.sf.jasperreports.engine.data.JRMapCollectionDataSource($P{my_collection_param})
    

    0 讨论(0)
提交回复
热议问题