aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes How to open a printable version of a page using css Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "How to open a printable version of a page using css" Watch "How to open a printable version of a page using css" New topic
Author

How to open a printable version of a page using css

vishwanath nadimpally
Ranch Hand

Joined: Jan 25, 2005
Posts: 116
I am using javascript to open a printable version of a jsp by hiding the header and footer .

But this is posting back to the server everytime it opens the printable page and this is causing some poblems on confirmation pages (like bill payment etc.).

Most of the pages in the utility application I am working on call oracle stored procedures and they have a 'reject code' output parameter, which is set to true once an error occurs and the post back is setting it to true.

Is there a way using CSS we can open a printable version of a page with out posting back to the server?

thanks for any help.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
CSS print media

Add a new style sheet with the things hidden. No JavaScript or postbacks needed.

Eric
vishwanath nadimpally
Ranch Hand

Joined: Jan 25, 2005
Posts: 116
thanks eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to open a printable version of a page using css
 
Similar Threads
Pro CSS for High Traffic Websites - using CSS for Reporting
disable anchor tags on printable page
Selected row highlighted only for split second
Providing site wide printable version for pages.
linking css and javascript with JSP pages