Posted by Benjamin Johnston on 2000-03-17
> Subject: printing from Java > > Does anyone know if Java has capability to print to a > printer from a Java application? I am designing a Yes. But its fairly slow in JDK1.2.x, apparantly JDK1.3 is a lot faster and better for printing. Take a look at java.awt.PrintJob, java.awt.printer.*, and a few others (which I can't remember) that you should be able to find by browsing the JavaDocs. When I played around with printing a while ago, I thought it was a bit clumsy, especially when working with precise details. Java printing seems well designed for when you have a visual component, and you want to rapidly turn it into a printer component. Also check out java.awt.Component.print(Graphics). -Benjamin Johnston s355171@xxxxxxx.xx.xxx.xx > Java/Swing front end to a database and I need to be > able to print off reports. > > Development is on a Windows 98 box, using JDK 1.2.2 > > Thanks, > Frank To signoff send a mail to listserver@xxxx.xx.xx with "signoff tcg" in the body of your message.
Previous post | Next post | Timeline | Home