https://github.com/jamilxt/java_spring-boot_japser-report
Jasper Report using Spring Boot. Export PDF, EXCEL, CSV, DOCX easily.
https://github.com/jamilxt/java_spring-boot_japser-report
Last synced: 5 months ago
JSON representation
Jasper Report using Spring Boot. Export PDF, EXCEL, CSV, DOCX easily.
- Host: GitHub
- URL: https://github.com/jamilxt/java_spring-boot_japser-report
- Owner: jamilxt
- Created: 2021-02-01T13:25:08.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-11-04T07:39:02.000Z (over 1 year ago)
- Last Synced: 2024-11-04T08:28:03.674Z (over 1 year ago)
- Language: Java
- Homepage:
- Size: 184 KB
- Stars: 46
- Watchers: 3
- Forks: 21
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://github.com/jamilxt/java_spring-boot_japser-report/actions/workflows/maven.yml)
# 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](http://localhost:8080/reports/transactions/download?exportType=PDF)

* EXCEL: [http://localhost:8080/reports/transactions/download?exportType=EXCEL](http://localhost:8080/reports/transactions/download?exportType=EXCEL)

* CSV: [http://localhost:8080/reports/transactions/download?exportType=CSV](http://localhost:8080/reports/transactions/download?exportType=CSV)

* DOCX: [http://localhost:8080/reports/transactions/download?exportType=DOCX](http://localhost:8080/reports/transactions/download?exportType=DOCX)

### Download [Jaspersoft Studio](https://community.jaspersoft.com/project/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/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](https://github.com/iabur) vai to provide me different template design from your old projects as well as assist me in every way.
[](http://github.com/jamilxt/java_spring-boot_japser-report/stargazers)
[](http://github.com/jamilxt/java_spring-boot_japser-report/network/members)