Question : How to remove header and footer when printing from IE for multiple computers.

Small problem, when users try to print from an online database we have, IE puts the header and footer on each page.  Now each person can go in and change this through the IE settings, but is there a way to do this from the IT level for all computers, such as Active Directory or through a batch file.  I do know that our SQL database try's to use a hack to change the setting for you, but I'm told w/o admin rights it doesn't work.

Answer : How to remove header and footer when printing from IE for multiple computers.

here is a VB Script:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
Option Explicit
 
Dim oShell
 
Private Function KeyExists (keyName)
	Dim bKey
		
	On Error Resume Next
 
	bKey = oShell.RegRead(keyName)
 
	If TypeName (bKey) = "Empty" Then
		KeyExists = False
	Else
		KeyExists = True
	End If
End Function
 
 
 
Set oShell = CreateObject("Wscript.Shell")
 
If keyExists("HKEY_LOCAL_MACHINE\Software\Microsoft\Office\11.0\Access\Security\Level") Then
    wscript.echo "Key exists"
Else
    oshell.RegWrite "HKEY_LOCAL_MACHINE\Software\Microsoft\Office\11.0\Access\Security\Level", 1, "REG_DWORD"
End If
 
Set oShell = Nothing
Random Solutions  
 
programming4us programming4us