Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > Servlets
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 22nd, 2007, 01:55 AM
Registered User
 
Join Date: Feb 2007
Location: , , .
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,


Reply With Quote
  #2 (permalink)  
Old May 23rd, 2007, 10:09 AM
Friend of Wrox
 
Join Date: Mar 2007
Location: Hyderabad, A.P., India.
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 01:02 PM.


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