The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
November 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

re: printing

Posted by Jay on November 30, 2001 at 8:12 AM

Yes Chin, I could use JavaScript window.print()but it prints out the page as it appears. I would like to format the content (set font, align text) so that it appears more like a report. To be more specific, I would like to use java.awt.Print classes on a client machine.

The PrinterJob class starts off with:
The PrinterJob class is the principal class that controls printing. An application calls methods in this class to set up a job, optionally to invoke a print dialog with the user, and then to print the pages of the job.

Cant I use it in anything other than an application?

Jay



Replies:
  • nope Chin Loong November 30, 2001 at 10:50 AM (0)

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us