473,387 Members | 1,859 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 1733
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
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
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
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
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
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
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
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
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
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
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...

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.