I want to clear the header and footer that are printed when a page is printed
from Internet Explorer. I have added the following code:
Dim regPageSetup As Microsoft.Win32 .RegistryKey
regPageSetup =
Microsoft.Win32 .Registry.Curre ntUser.OpenSubK ey("Software\Mi crosoft\Interne t
Explorer\PageSe tup", True)
If (Not regPageSetup Is Nothing) Then
regPageSetup.Se tValue("Footer" , "")
regPageSetup.Se tValue("Header" , "")
regPageSetup.Cl ose()
End If
However this doesn't change the setting for the Current User key, but it
does change the setting for the Users key. I have tried all the possible
choices for keys, eg Microsoft.Win32 .Registry.Curre ntConfig, and only the
CurrentUser one gets past the If statement. But this doesn't change the bit
I need changed, it still prints out the heading.
Any ideas?
--
Helen
from Internet Explorer. I have added the following code:
Dim regPageSetup As Microsoft.Win32 .RegistryKey
regPageSetup =
Microsoft.Win32 .Registry.Curre ntUser.OpenSubK ey("Software\Mi crosoft\Interne t
Explorer\PageSe tup", True)
If (Not regPageSetup Is Nothing) Then
regPageSetup.Se tValue("Footer" , "")
regPageSetup.Se tValue("Header" , "")
regPageSetup.Cl ose()
End If
However this doesn't change the setting for the Current User key, but it
does change the setting for the Users key. I have tried all the possible
choices for keys, eg Microsoft.Win32 .Registry.Curre ntConfig, and only the
CurrentUser one gets past the If statement. But this doesn't change the bit
I need changed, it still prints out the heading.
Any ideas?
--
Helen
Comment