Best way to print simple reports in java

I developed a Java application and now I want to give some simple print support. Something like printing invoices, some reports, etc. Now I am creating this material in html, showing it on JEditorPane. but the html support is pretty poor, and I'm really dying out this thing. Is there a better way to do this? Any better browser component or better tool for creating such simple reports? (JDK 1.6)

+6
java report
source share
5 answers

I love JasperReports for this. Combined with iReport (GUI for reporting), this is the best I could find for free in Java for reporting.

You can also create PDF files with iText for printing. Although I think it will be easier to use iReports.

+10
source share

JasperReports is a pretty nice reporting tool for Java. It can be a little heavy for what you want.

+2
source share

Another solution is BIRT , which is very easy to use: it is an Eclipse project with a visual editor for your reports. The report consists of three stages:

  • create data source
  • create a dataset for this data source
  • create your report based on DataSet
+2
source share

DynamicReports is an open source reporting tool. You can quickly create reports without using a visual designer. See examples .

+2
source share

When printing invoices and reports, no doubt you want them to look more than basic - hence your problem. If your swing application has a server-side component, look at the Jasper and Docmosis libraries to generate decent reports from the server (since then the server’s heavy side is usually aok). If you really need a library only for the client application, there is an old library called JViewPro , which is pretty yuk for coding, but can allow you to place reports in code for display and printing and is a single bank (just be careful with memory usage).

+1
source share

All Articles