• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Report printing in java

 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I am working in a corporte.
We generate online reports. At present we have been writing them
using servlets. But we r facing certain printer related problems.
How can i generate a Txt file from a servlet and put it across
the web ?
We used crystal report tool but its also giving some problem
pls help
 
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
You could use XML, XSL, Cocoon and your choice of servlet container. I generate an XML file from a database query and associate that file with an XSL file. I then use Cocoon to render the XML file to pdf.
You can look up Cocoon at XML.apache.org/cocoon.
Frank
 
Ranch Hand
Posts: 247
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You could set your output (content?) type to "text/plain" or just wrap your output in the HTML between PRE tags (PREformatted text).
Alternately, I would suggest having the reports generate as .DOC or .PDF from Crystal, if that's an option. If you look throug a JDJ or JavaPro issue you can find other Java-only reporting engines that to HTML/DOC/PDF/Excel/Other.
 
reply
    Bookmark Topic Watch Topic
  • New Topic