Hi to all for the Help :-) , > I haven't tried it myself, but you should be able to use AWT's built in print > functionality to get a Graphics2D object representing your printer and then > just draw to it (e.g. by calling the paint() method of your root component). > You may need to apply a scaling transform to get reasonable results, and, as > Noel said, you may need to watch out for animations if you are trying to > print any components that use them. I have to try, but many years has passed since my last use of these features, and I hope with java 6 now things should go better ... Or, better I can try to draw reports in PDF (for example with the great iText library, or with xml + xslt or other similar), and let users open/print them, probably a better option.
> Since we don't currently provide a way to turn animations off, I'd suggest > avoiding such components if you can. Maybe we can think at something on this for the next release, but before the 2.0 ... add a JIRA ticket for the 1.5 ? So a Test / demo of a simple Printing feature could be really useful, I have to think at something simple on it. As always comments/suggestions are welcome. > Another alternative is to use a reporting package (such as JasperReports) to > perform your report rendering. If I were writing a Pivot-based reporting > tool, I think I would probably look at this option first. This was my first try, but another requirements is that (if existing) the server part has to run under AS/400 (IBM iSeries), and after some tests, using the Graphical Report designer of JasperReports (iReport) I wasn't able to connect to the DB on a test server (using JTOpen drivers), so it wasn't a good start. So my boss now has the (bad) idea to make all in-house :-( ... let's see. Thanks to all. Bye, Sandro
