java_spring-boot_japser-report
java_spring-boot_japser-report copied to clipboard
Jasper Report using Spring Boot. Export PDF, EXCEL, CSV, DOCX easily.
Jasper Report using Spring Boot (Jave 11, Maven)
Export (PDF, EXCEL, CSV, DOCX)
Reference Documentation
Run the application. Then, Export:
- PDF: http://localhost:8080/reports/transactions/download?exportType=PDF
- EXCEL: http://localhost:8080/reports/transactions/download?exportType=EXCEL
- CSV: http://localhost:8080/reports/transactions/download?exportType=CSV
- DOCX: http://localhost:8080/reports/transactions/download?exportType=DOCX
Download Jaspersoft Studio to modify the template (file with .jrxml extension) as you like.
Templates are:
- PDF: transaction_report_pdf.jrxml
- EXCEL: transaction_report_excel.jrxml
- CSV: transaction_report_csv.jrxml
- DOCX: transaction_report_docx.jrxml
Open these templates using Jasper Studio & modify as your own. It takes sometime to be familiar with the syntax to design the template. It's similar to HTML but need some practice to make a better design. Enjoy!
Credits:
- iabur
- https://github.com/javahowtos/jasper-export-demo
- https://github.com/javahowtos/jasper-excel-export-demo
- StackOverflow
I didn't find any repo which provides (PDF, EXCEL, CSV, DOCX) all of them at once. Thanks to these^ repo I got the basic idea how to export the report. Thank you very much iabur vai to provide me different template design from your old projects as well as assist me in every way.