ppaulinolopes
asked on
WebBrowser: setting header and footer
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!
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!
ASKER
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!
Now, that you know the registry key
See this PAQ:
Reading and Writing of Registry Information
https://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.
See this PAQ:
Reading and Writing of Registry Information
https://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.
ASKER
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!)
(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!)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
https://www.experts-exchange.com/Q.10108254
or any other PAQ.