Link to home
Start Free TrialLog in
Avatar of RichW
RichWFlag for United States of America

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
Avatar of robbert
robbert

Yes. Tailor IE, and distribute it.

http://www.microsoft.com/Windows/ieak/en/default.asp
Avatar of Mark Franz
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/
Avatar of RichW

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
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
Avatar of neoabacus
neoabacus
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of RichW

ASKER

Thanks everyone!!