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.CurrentUser.OpenSubKey("S oftware\Microsoft\Internet
Explorer\PageSetup", True)
If (Not regPageSetup Is Nothing) Then
regPageSetup.SetValue("Footer", "")
regPageSetup.SetValue("Header", "")
regPageSetup.Close()
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.CurrentConfig, 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