• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 224
  • Last Modified:

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
0
RichW
Asked:
RichW
  • 2
  • 2
  • 2
  • +1
1 Solution
 
robbertCommented:
Yes. Tailor IE, and distribute it.

http://www.microsoft.com/Windows/ieak/en/default.asp
0
 
mgfranzCommented:
Other than that, your only other recourse is the print properties of the printer.
0
 
neoabacusCommented:
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
RichWAuthor Commented:
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
 
mgfranzCommented:
You know that this is a IE5 fix only, IE4 has no known way to disable the property, and Netscape will probably never...
0
 
neoabacusCommented:
yes I know that for ie5 only i mentioned that in my above comment...
0
 
RichWAuthor Commented:
Thanks everyone!!
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

  • 2
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now