Print from IE without header/footer

sysdesigner

Newcomer
Joined
Feb 8, 2004
Messages
10
Here is what we are trying to do.

We have several reports that we need to print from IE 6 or lower versions. We have the page formatted how we want it to print, but we want to get rid of the header and footer that IE puts on the printed page. We want to do this programmatically, so the users wont have to change the settings in the browser. (We don’t want to use the options that are in File|Page Setup).


Thanks,
Shawn
 
I used ScriptX and its been working great.

http://www.meadroid.com/scriptx/index.asp

There is a free basic version you can use that will allow you to set custom headers and footers (empty string will completely remove them), or you can pay for a liscence to get added features.

Its very simple to use, although the client needs to download the control the first time using it. Here's what I add to my Invoice page to remove headers and have only the page number in the footer:

Code:
<!-- MeadCo ScriptX Control -->
<object id="factory" style="display:none" 
classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814"
codebase="http://www.meadroid.com/scriptx/ScriptX.cab#Version=6,1,431,8" VIEWASTEXT>
</object>

<script defer>
	function window.onload() {
	factory.printing.header = ""
	factory.printing.footer = "&b&bPage &p of &P"
	}
</script>
 
Back
Top