• Post Reply Bookmark Topic Watch Topic
  • New Topic

Printing

 
Simon Bodenmann
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can i print a Array easy.
Is there a class(for downloading), within i can print easy?
(I must printing only in Windows-OS).
Thanks
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Panthos" -

Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy.
You can change it here.

What do you mean by "print"? Print to the command prompt, or print to a printer? And what's it an array of? All these would really help answer your question...

Thanks! and welcome to the JavaRanch!
 
Simon Bodenmann
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I mean print to a printer. It's a String Array (String[][]).
With Printable, PrintJob and Pageable (etc.) is it to difficult.
Is there a simpler Solution for Printing?
Can I get a complete Class from somewhere?
 
David Gilbert
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Simon,
One approach would be to use JFreeReport:
http://www.object-refinery.com/jfreereport/index.html
It's probably not going to be simpler (you have to create a report template in XML format by hand) but you get lots of extras for free (print preview, export to PDF, headers, footers, page numbering and so on). JFreeReport is free, subject to the terms of the GNU LGPL.
Regards,
Dave Gilbert
www.object-refinery.com
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!