473,498 Members | 1,873 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Registry Setting

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
Jul 21 '05 #1
3 1737
To the best of my knowledge this can be turned off in File =>Page Setup
of IE.

"Helen Trim" <He*******@discussions.microsoft.com> wrote in message
news:He*******@discussions.microsoft.com:
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


Jul 21 '05 #2
Thanks, but I did already know that! I'm designing for users who are not
computer literate so I wanted to do it programatically.
--
Helen
"Amit Bahree" wrote:
To the best of my knowledge this can be turned off in File =>Page Setup
of IE.

"Helen Trim" <He*******@discussions.microsoft.com> wrote in message
news:He*******@discussions.microsoft.com:
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


Jul 21 '05 #3


Helen, did you get an answer - I am having the same issue

Thanks
DR

*** Sent via Developersdex http://www.developersdex.com ***
Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
2905
by: Mark A | last post by:
Here is the description of a new feature in 8.2.2 (FP9) from the InfoCenter: "DB2_SKIPINSERTED registry variable You can use the DB2_SKIPINSERTED registry variable to skip uncommitted inserted...
1
16291
by: rdavis7408 | last post by:
I have a database that has a form that opens a report using date parameters. I have been using it for six months and last week I began to get the following Error Message: "File sharing lock...
8
5462
by: Al Kaufman | last post by:
I have a simple console app that uses: regSubKey = <some registry key> Dim reg As RegistryKey = Registry.ClassesRoot.OpenSubKey(regSubKey) Dim path As String path = CStr(reg.GetValue(""))
4
46381
by: LP | last post by:
Hi, My webservice is currently deployed on WIndows 2000 server and runs pretty fine. I am trying to run my webservice on a Windows 2003 server. My webservice tries to write to a eventlog. The...
17
1578
by: Sam | last post by:
Hi all If I only want to store screen location and size of my application in Windows Registry, which of the keys should I store this info? A sample code is greatly appreciated. Thank you ...
3
1125
by: CrimeMaster | last post by:
Hi i have made a Key under the HKEY_LOCAL_MACHINE\Software\My Toolbar\Setting. i have placed some values under the Setting key. i m trying to access the values under that key and want to map them...
5
1336
by: Anil Bakirci | last post by:
How can I update the registry, after i change a key value to take effect ? There is nothing usefull in Microsoft.Win32.Registry und Microsoft.Win32.RegistryKey. Wie kann man in .NET ein...
6
1664
by: JOSII | last post by:
Getting a string of boolean value into and out of the registry is no problem. Here's the problem: Although you can place an object into the registry and retreive it, I need to place an ArrayList...
1
9976
by: =?Utf-8?B?UmljaA==?= | last post by:
In the Registry at HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Jet \ 4.0 \ Engines \ Text the default key for Text Format is: "Format" = "CSVDelimited" I can use the following OleDB...
0
7208
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6890
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5464
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4915
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4593
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3095
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3085
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1423
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
657
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.