File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes How to Print the contents of a page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to Print the contents of a page" Watch "How to Print the contents of a page" New topic

How to Print the contents of a page

mahadevan raja
Ranch Hand

Joined: Apr 11, 2001
Posts: 96
hi all,
i have page which displays reports,for eg.
Name Age
xxx 1
yyy 2
zzz 3
aaa 4
nnn n
v have done paging and r displaying 10 records per page,now the problem is when v try to take out the printout of the page which has the first 10 records,v want only the reports to be printed ,i dont want to select reports and then print,
i need to give the user a link called printable format,and i need to take these reports in that printable format with proper page size and alignment.
2.and suppose i print all the records in the same page without paging,and try to print it (normal print ctrl+P),i dont get the header in the next page,
can u give me a solution of how to do these.
plz reply soon.

SPECIALIST-WCSV5.1 Implementation.<br />SYSTEMS EXPERT-WAS4.0 Administration
I agree. Here's the link:
subject: How to Print the contents of a page
It's not a secret anymore!