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

"Helen Trim" <He*******@disc ussions.microso ft.com> wrote in message
news:He*******@ discussions.mic rosoft.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.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


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*******@disc ussions.microso ft.com> wrote in message
news:He*******@ discussions.mic rosoft.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.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


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
2911
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 rows for Cursor Stability (CS) and Read Stability (RS) isolation levels. The registry variables DB2_SKIPDELETED and DB2_EVALUNCOMMITTED are used to skip uncommitted deletions and uncommitted updates. Otherwise, CS and RS
1
16318
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 count exceeded. Increase MaxLocksPerFile registry entry." I checked in the Tools - Options - Advance. I have the database shared with no locks selected and record level locking selected.
8
5482
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
46442
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 code is as follows: System.Diagnostics.EventLog Log = new System.Diagnostics.EventLog( EventLogName ); Log.Source = EventLogName; Log.WriteEntry( "PCHistory Service Application started up successfully.",
17
1591
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 Regards, Sam
3
1129
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 to a dialog box ,means they should be visible in their corresponding Edit controls when i display the dialog.i have used the following code in OnInitDialog() function to map the values to their corresponding controls but when the dialog...
5
1345
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 Registry-Update machen ohne den Computer neuzustarten ? In Microsoft.Win32.Registry und Microsoft.Win32.RegistryKey konnte ich so was nicht finden.
6
1677
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 object with 10 string items into the registry and retreive them later. I tried this: key.SetValue("lstNSXitems", lstNSX.Items) where "lstNSXitems" is the name of the subkey, and lstNSX.Items is the
1
10006
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 connection string with an OleDB dataAdapter to read a comma delimited text file when "Format" = "CSVDelimited"
0
8227
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8165
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8613
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7150
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5561
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4164
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2602
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 we have to send another system
1
1778
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1473
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.