This week's giveaway is in the Java/Jakarta EE forum.
We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line!
See welcome thread
Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to Print the contents of a page  RSS feed

Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!