File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Printing Reports Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Printing Reports" Watch "Printing Reports" New topic
Author

Printing Reports

Manjunath Subramanian
Ranch Hand

Joined: Jul 18, 2001
Posts: 236
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
wei zhy
Greenhorn

Joined: Mar 26, 2002
Posts: 3
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

Joined: Jul 18, 2001
Posts: 236
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
Pranit Saha
Ranch Hand

Joined: Sep 09, 2001
Posts: 130
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

Joined: Jul 18, 2001
Posts: 236
Thanks Pranit
But my million $ question is HOW TO DO THAT?
thanks,
Manjunath
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12835
    
    5
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Printing Reports