jasper-reports - JasperReport:在一份报告中显示多个列表
问题描述
我想在我的报告中显示多个列表。例如,我要显示这三个 DTO 列表:
Total vehicles : 3
Porsche
Ferrari
Tesla
Total vegetables : 2
Potatoes
Carot
Salad
Total fruits : 3
Banana
Apple
Lemon
如何显示多个列表?
我习惯于通过使用此指令(在 java 端)填充报告来仅显示一个列表:
JasperPrint jp = JasperFillManager.fillReport(jr, new HashedMap(), new JRBeanCollectionDataSource(vegetables,false));
然后我通过显示 DTO 的属性在详细信息带中显示此列表。
我是否需要在一份报告中使用多个报告?或者我可以在一个报告中添加多个列表吗?
谢谢
解决方案
推荐阅读
- python - 为什么 ThreadPoolExecutor 忽略异常?
- json - 当我已经将该字段设置为可为空时。它没有优雅地解析信息。可能是什么问题?
- javascript - 如何将数组与使用本地存储的不同数组连接起来
- sql - Oracle SQL:基于行的重启顺序
- git - GitLab 中未显示的口音
- node.js - ReplicaSetNoPrimary MongooseServerSelectionError: getaddrinfo EAI_AGAIN mongodb-primary
- reactjs - 我在基于类的 reactjs 代码中有下面的照片上传器代码,我希望它在基于功能的工作代码中
- mysql - 用于选择性别的单选按钮。如何成功检索所选性别?
- c# - 如何将 .Net Framework Nuget 添加到 .Net 标准类库项目中?
- selenium - RSelenium makeFirefoxProfile 与 Windows 任务计划程序