• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Printing

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic