This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Beginning Java and the fly likes printing a document Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "printing a document" Watch "printing a document" New topic
Author

printing a document

terry oliver
Greenhorn

Joined: Jan 04, 2008
Posts: 22
Dear sir

I am wondering if you would supply me with an example of producing a printed form from a java application.

I am presently engaged in producing a program for the design of transformers, all the important variables are in a class called NewTransformer.
There are 3 swing classes and on transformer calculation class. After the user enters the basic data a screen is shown called Engineering Data sheet with engineering transformer data for design perusal at this stage it can be recalculated with the new edited data supplied, when the engineer is satisfied he wants a printed copy with additional information shown. I would like to make a formatted form in word or some other application or even in java itself the form would supply the variable labels and pull the data from new transformer then supply a nice looking data sheet for their records.

Thank you for your help

Terry Oliver.
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11432
    
  85

Hi Terry,

What have you done so far? Your question seems a little open-ended at the moment.

Some sites you might want to look at if you have not yet done anything with printing:
  • Sun's Printing on the Java SE Platform page (has links to other pages, in particular:
  • Sun's Lesson: Printing gives a nice introduction to printing
  • "Printing in Java," Jean-Pierre Dub´┐Ż (JavaWorld) provides (IMHO) a better tutorial and he then provides a framework to make printing easier.

  • Regards,

    Andrew


    The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: printing a document