Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics 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 September 14th, 2004, 06:20 AM
Authorized User
 
Join Date: Sep 2004
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default Print web page withiout printing url footer

I want ot print a web page but it should not print the footer url address and header
:(

rekha
__________________
It is always safe to assume, not that the old way is wrong, but that there may be a better way...
*************************
Rekha
 
Old September 14th, 2004, 07:26 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 596
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Rekha,
I think these things are set on the client browser.


======================================
They say, best men are molded out of faults,
And, for the most, become much more the better
For being a little bad.
======================================
 
Old September 14th, 2004, 07:55 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Add to the elements that you don't want printed the attribute class='noPrint'.

Then add a link tag in the head of the page like this:

<link href='print.css' type='text/css' rel='stylesheet' media='print'/>

And in print.css:

.noPrint { display: none; }

HTH,

-Snib <><
http://www.snibworks.com/
 
Old September 15th, 2004, 10:26 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Snib, I believe Rekha is referring to removing header and footer on her client browser before printing the page.

Rekha,
If I am right, go here.
On your browser, File >> Page Setup
Remove &w&bPage &p of &P from HEADER and &u&b&d from FOOTER. Then go for print.

Hope that helps.
Cheers!

_________________________
- Vijay G
Strive for Perfection
 
Old September 15th, 2004, 10:47 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 596
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Yeah, Sorry that is what I meant to say.
You can change for yourself but not for all users who use the web app.

======================================
They say, best men are molded out of faults,
And, for the most, become much more the better
For being a little bad.
======================================





Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing fit to page print arnabghosh Javascript How-To 2 July 29th, 2007 05:58 PM
Want to print some portion of the web page. jigu_2811 C# 1 October 17th, 2006 08:16 AM
url of actual web page VB6 Perseus Beginning VB 6 0 July 30th, 2005 04:38 AM
printing from a web page badgolfer ASP.NET 1.0 and 1.1 Basics 4 January 28th, 2005 12:07 PM
Print an web page without URL address rekha_jsr Servlets 1 September 16th, 2004 05:15 AM





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