views:

61

answers:

2

I need to do some printing from my Java Swing application. I have tried to use Java Tutorials, but everything is very low level, and time-consuming. I have to specify the coordinates for every line that I want to print. It is also very lowlevel to use text, because I have to use FontMetrics and calculate what space all text fills up.

Is there any easier way to to printing in Java? I would like to design the documents with something like layout managers instead. Any good library or API?

+1  A: 

See JasperReports

Maurice Perry
Thanks! JasperReports look good. I will give it a try.
Jonas
A: 

What kind of document are you looking to print to?

Like Maurice said Jasper Reports is a good library. You can also use POI to work with Microsoft documents

ralphL
I will print data form my application, to paper.
Jonas