- In this Project, I used simple Java and JDBC with MySQL.
- Using Java, I am trying to generate PDF Report.
Map<String, Object> parameter = new HashMap<String, Object>();
JRBeanCollectionDataSource keywordCollectionDataSource = new JRBeanCollectionDataSource(keywordList);
parameter.put("KeywordsDataSource", keywordCollectionDataSource);
-
Main Section this KeywordsDataSource and it will be used in Jasper Design (jrxml).
-
Create a datasource with any name and set parameter.
$P{KeywordsDataSource}
- Additionally, Also make field under parameters.
$F{name}
- Please Check the code carefully alongwith the jrxml source.
- Please check JasperReport.jrxml and JasperReportProject.java.
♤✪✪✪ Thanks for Checking this code. ✪✪✪♤
Code with ❤️️ by Rajendra Kumar R Yadav 😍😍