Solved

Suppress Page # and url

Posted on 2000-03-08
7
217 Views
Last Modified: 2012-05-04
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
0
Comment
Question by:RichW
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 15

Expert Comment

by:robbert
ID: 2597764
Yes. Tailor IE, and distribute it.

http://www.microsoft.com/Windows/ieak/en/default.asp
0
 
LVL 18

Expert Comment

by:mgfranz
ID: 2597783
Other than that, your only other recourse is the print properties of the printer.
0
 

Expert Comment

by:neoabacus
ID: 2598814
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/
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 4

Author Comment

by:RichW
ID: 2604405
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
0
 
LVL 18

Expert Comment

by:mgfranz
ID: 2605361
You know that this is a IE5 fix only, IE4 has no known way to disable the property, and Netscape will probably never...
0
 

Accepted Solution

by:
neoabacus earned 50 total points
ID: 2605391
yes I know that for ie5 only i mentioned that in my above comment...
0
 
LVL 4

Author Comment

by:RichW
ID: 2605744
Thanks everyone!!
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question