File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes printer friendly page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "printer friendly page" Watch "printer friendly page" New topic

printer friendly page

Pranav Sharma
Ranch Hand

Joined: Oct 27, 2003
Posts: 258
I bring up a table with search results, but if/when the data is printed it is not user friendly with truncated data, data bleeding..etc.

I have seen sites with
1. the "print" link which brings up a simple page ready for print and also seen examples

2.where you hit print and the data prints in a format different from that shown on the screen (google maps).

My questions,
- Is 1. done on the server side or is it possible to achieve this using client side scripting. If so how.

- How is 2. achieved
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
You do not have to make a seperate page, you can try using place CSS with CSS Print Media.

I agree. Here's the link:
subject: printer friendly page
It's not a secret anymore!