开发者

How can I do printing in Java with layouts instead of low level coordinates?

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?


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


See JasperReports (new location)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜