简体   繁体   中英

Reports creation using Java

How can we create report in Java? Something like Crystal Reports in .net.

We have Jasper Report .

JasperReports is the world's most popular open source reporting engine. It is entirely written in Java and it is able to use data coming from any kind of data source and produce pixel-perfect documents that can be viewed, printed or exported in a variety of document formats including HTML, PDF, Excel, OpenOffice and Word.

  • Here is quick tutorial

Might be a duplicate of this question , BTW...

Anyways, here's my honest (yet biased) answer copied from there:

i-net Clear Reports (used to be i-net Crystal-Clear)

  • Simple and easy-to-use API of both the report engine and the Java report viewer .
  • Can export into any major format like PDF, HTML, SVG, XLS, etc., as well as into a Java applet viewer. (See samples )
  • Comes with a free and powerful graphical report template designer. (See video guide )
  • Installs as a WAR file on your application server or can be used as a library within your own application.
  • Great technical support (you usually get an answer in minutes or hours rather than days or weeks)
  • Charts based on JFreeChart (so includes Stock charts).
  • Can read Crystal Reports templates. (for a lot of customers, this is the killer feature since you don't have to re-create all your old Crystal Reports templates)
  • Great and competitive pricing - effectively costing " less than open source ".
  • Free 90-day trial of the server component.
  • Free and fully functional report designer .

[full disclosure: Yes, I work for i-net software. But it's still my honest (though subjective and biased) answer to the question. ;)]

Try iRepor/JasperReports . I think is your best option as of today.

It's pretty mature, constantly updated (active), it supports StandAlone/Swing Applications, Web Applications, you can export to Excel/PDF, and integrates easily with major Appilcation Servers.

JasperReports is the Reporting Engine, and iReport is its IDE (Visual Report Editor).

BIRT is a very popular and powerful tool. Recommended.

Jasper report is indeed a powerfull tool, but sometimes to much work to create a report.

I would recommend to look also to POI and Docx4j . With those you can include a template with headers and entreprise style. You can build the file with simple statements but with Docx4j you can also replace tags (templating) in your .docx file by a element of choosing.

The docx4j(ava) documentation is available here: https://www.docx4java.org/forums/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM