Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Servlets
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Servlets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 22nd, 2007, 01:55 AM
Registered User
 
Join Date: Feb 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Print a page without changing page setup

I want to print a page but it should not print the footer url address and header.
dont we have other option other than to change the page setup window of the browser.
If you have any option then plz mail me.

Thank you,


 
Old May 23rd, 2007, 10:09 AM
Friend of Wrox
 
Join Date: Mar 2007
Posts: 373
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi,

What i know about printing a html/jsp page is handled by CSS, we normally define a separate css with the name print.css which will handle which parts should be sent to printer and which should not. Check for some examples online.
You need to set the dispaly attribute fo the footer and header div as "none". then it wont send those parts for printing.

Regards,
Rakesh





Similar Threads
Thread Thread Starter Forum Replies Last Post
print page that is not the current page crmpicco Javascript How-To 0 July 26th, 2005 09:11 AM
print the hidden page without the print dialog box kayzem Classic ASP Basics 0 April 21st, 2005 11:31 PM
How to set browser print page setup from .Net k_kosaraju General .NET 2 March 15th, 2004 03:55 PM
Page Setup asbayani Javascript How-To 2 February 11th, 2004 12:07 PM
Page setup thutt Access 1 June 17th, 2003 07:50 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.