RichW
asked on
Suppress Page # and url
Does anyone know how to suppress the "Page number indicator" at the top of a web page print and the url at the bottom in ASP?
Page 1 of 4
PAGE
http://mydomain/page.asp
Page 1 of 4
PAGE
http://mydomain/page.asp
Other than that, your only other recourse is the print properties of the printer.
you could change the values for title before print then change back after printing... at least in ie 5
see http://msdn.microsoft.com/workshop/author/script/dhtmlprint.asp
which has this sample script...
// This example shows a page that modifies its title before printing
// and then resets it to its original value after printing.
var originalTitle;
<script for=window event=onbeforeprint>
originalTitle = document.title;
document.title = document.title + " - by Captain"
</script>
<script for=window event=onafterprint>
document.title = originalTitle;
</script>
or you could try scriptx ativex control
see http://www.meadroid.com/scriptx/
see http://msdn.microsoft.com/workshop/author/script/dhtmlprint.asp
which has this sample script...
// This example shows a page that modifies its title before printing
// and then resets it to its original value after printing.
var originalTitle;
<script for=window event=onbeforeprint>
originalTitle = document.title;
document.title = document.title + " - by Captain"
</script>
<script for=window event=onafterprint>
document.title = originalTitle;
</script>
or you could try scriptx ativex control
see http://www.meadroid.com/scriptx/
ASKER
neoabacus
Post an answer and I'll give you the points. There are methods there for the URL print, but I didn't see anything about Page#s.
Thanks again.
Rich
Post an answer and I'll give you the points. There are methods there for the URL print, but I didn't see anything about Page#s.
Thanks again.
Rich
You know that this is a IE5 fix only, IE4 has no known way to disable the property, and Netscape will probably never...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks everyone!!
http://www.microsoft.com/Windows/ieak/en/default.asp