Users need to print the forms that they are viewing once in a while. Anyone done this already. I searched the mailing list archive and
Google for printing or capturing an image of a JFrame.  I came up with
these links.


Java Technology Forums - How to print JFrame with its title bar and border?
http://forum.java.sun.com/thread.jspa?forumID=57&threadID=263262

ULC Community - Contributions > Utilities > Printing
http://ulc-community.canoo.com/snipsnap/space/Contributions/Utilities/Printing

How do I print a JTable?
http://www.jguru.com/faq/view.jsp?EID=1251266


The 1st link looks the most promising. It says to use java.awt.Robot (http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Robot.html) to
capture a BufferedImage.  Once the BufferedImage is captured, I'm sure
it can be turned into a PNG and sent to the user or even a PDF as the
second link describes.

Would this functionality need to be packaged up as a ULC extension?

cheers,
Cameron
_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer

Reply via email to