In Generating a report from data stored in database, along with Report’s title, columns’ header, content direction, fonts and etc., there exist numerical information that should be summarized in the header or footer section of the report. Moreover, Some times we need to export data in different structure or format such as XML, JSON or other custom structure.
Although the existing libraries like Jasper are so comprehensive and matured, if you need to make simple tiny reports it can be frustrating and somehow confusing to work with its xml based configuration and environment setup. In my last project I looked for a battery included alternative library for Jasper that is easy to setup and easy to use, unfortunately I couldn’t find (maybe I didn’t googled well ). I decided to start an open-source project to develop an easy to configure and easy to use library in Spring boot that make quick reports in few lines of codes, and I named it Salmos report.
It directly read from database using SQL query and JDBC data source, and can be fed by entity objects retrieved by hibernate, and until now it can produce Html, xml and pdf and custom format report.
To download using Gradle , add this line to your dependencies section :
To download in your Maven project add this as a dependency :
<dependency> <groupId>io.github.birddevelper</groupId> <artifactId>salmos-report-spring-boot-starter</artifactId> <version>2.1.0</version> </dependency>
To learn how to generate your first report read : my article on Medium.com
Version 2.1.0 Features :
- Read data from List of Objects and Entities
- Read data from database by SQL query
- Generate HTML Report
- Generate XML document
- Generate PDF document
- Generate custom structure report
- Generate TEXT file from report
- CSS Classes for HTML report
- CSS style for html tags
Github repository : salmos report on github (please don’t forget to give start to project )
Maven central page : salmos report on Maven Central
2 thoughts on “With Salmos Report in Spring boot generate reports in any format you need”
when the pdf export will be ready?
From version 1.2.0 and later the pdf export of the report is available with generatePDF() function