
How to customize or suppress header and footer when printing from WebBrowser control
Quote:
> I am using WebBrowser control with vb6 to display some HTML text
> conatining URLs and email addresses as well. The display of the text
> is fine, however, when I get printing from WebBrowser control it
> displays header (Page 1 of 1) and footer
> (about:<html><body>This%20is....) on each page. I wish to display
> customize(my own) header/footer on the page. Is it Possible? Can
> header/footer be suppressed?
I looked into this once for a project at work (since shelved). The
header/footer
settings are held in the registry (I don't remember off-hand exactly where).
You'd have to save the old values, reset them to what you want (maybe
nothing)
and then restore the original values when you're done.
You might be able to automate IE directly instead of using the WebBrowser
control and manipulate the Page Set-up dialog.
I just did another google and found:
http://codestore.net/A55692/store.nsf/0/38371F056AA6966586256BC100627...
which includes a link to an MSDN article that is supposed to explain how to
do what you want.
HTH.
Simeon