File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes How to print in java? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to print in java?" Watch "How to print in java?" New topic

How to print in java?

Mr.Vipin Dube

Joined: Jan 10, 2004
Posts: 5

I want to take printout, is there any reporting tool, or any API that can help me take printout of my application output.


Enjoy...<br />Vipin Dube
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 32811

Take a look at the java.awt.print package. In particular, the PrinterJob class is a good starting point.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: How to print in java?
It's not a secret anymore!