?
Solved

WebBrowser: setting header and footer

Posted on 1999-01-12
5
Medium Priority
?
1,167 Views
Last Modified: 2013-12-25
Is it possible to set header/footer of a html file shown in WebBrowser control? I want to set header/footer to "" (none). I already know that using this code it is possible:

WebBrowser1.ExecWB OLECMDID_PAGESETUP, OLECMDEXECOPT_PROMPTUSER

But, every time that I have to print the file shown, I have to set header/footer again. Is it possible to set it forever, and without prompting user with the dialogbox that apears?

Thanks!
0
Comment
Question by:ppaulinolopes
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 15

Expert Comment

by:ameba
ID: 1489602
Go to PageSetup in IE. Delete text for header and footer.

Or, via VB. Just modify registry setting.
To find where is this setting, set header to "eeee".

Then, press start, run, and type regedit. Press Enter to start regedit.
Start search for "eeee".
When you know location in registry, use your code to modify setting, e.g:
Reading and Writing of Registry Information
http://www.experts-exchange.com/Q.10108254
or any other PAQ.
0
 

Author Comment

by:ppaulinolopes
ID: 1489603
Okay, I found location of "eeee" in registry. Well, I am not a professional VB user. How can I modify this registry via VB?Please, send me a sample code...... thanks!
0
 
LVL 15

Expert Comment

by:ameba
ID: 1489604
Now, that you know the registry key
See this PAQ:
Reading and Writing of Registry Information

http://www.experts-exchange.com/Q.10108254
(paste this address to your browser and buy answer, I think it is 10 points)

or any other answered question. There are many PAQs that describe this.
0
 

Author Comment

by:ppaulinolopes
ID: 1489605
Hey, ameba.... Now I am able to set header and footer thruw registry setting.


(I can't give you credits if the question was rejected 'a priori'. I am waiting for your next proposed answer to give you the credits. e.i. Propose me a simply thanks!)
0
 
LVL 15

Accepted Solution

by:
ameba earned 900 total points
ID: 1489606
Hi, ppaulinolopes
Thanks!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question