• 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
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Printing Reports

 
Ranch Hand
Posts: 236
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,
I am using a jsp for printing a report in a table format having more than 100 columns.
I know the printing mechanism in java.awt.But how do i print from a jsp file.This is urgently required.Kindly help.
Thanks in advance,
Manjunath
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Manjunath Subramanian:
Hello All,
I am using a jsp for printing a report in a table format having more than 100 columns.
I know the printing mechanism in java.awt.But how do i print from a jsp file.This is urgently required.Kindly help.
Thanks in advance,
Manjunath


You can watch the java.awt.printJob class.Maybe you will get some useful information?
 
Manjunath Subramanian
Ranch Hand
Posts: 236
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't have access to the api,but i will surely check this out.Again, as i said earlier this is only for printing awt components.I don't think this class will have any utility for printing from a jsp which is a part of a seperate API.
Thanks anyway...
Can any body help me?
thanks,
Manjunath
 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I think u r able to display the datas in the html tables.. if u want to print the same u can create a printer friendly version.. which will display the data as it'll be displayed in the printer..
This is the way i did before..
Thanks and regards,
Pranit..
 
Manjunath Subramanian
Ranch Hand
Posts: 236
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Pranit
But my million $ question is HOW TO DO THAT?
thanks,
Manjunath
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The only kind of output a JSP can do is as HTML that will be interpreted by a browser.
The best way to approach this is to make a plain HTML page that creates the layout you want first. Any book on HTML can help you with the tags.
Only after you get the prototype looking like you want should you try to turn it into a JSP.
Bill
 
Slideshow boring ... losing consciousness ... just gonna take a quick nap on this tiny ad ...
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic