
programmatically controlling header/footer on doc printed from WebBrowser control
You can display the Page Setup dialog with
wbr.ExecWB _
cmdid:=OLECMDID_PAGESETUP, _
cmdexecopt:=OLECMDEXECOPT_PROMPTUSER
To set the header/Footer programatically, I know of no other way than
temporarily changing the Registry settings at
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\PageSetup
with code that ensures that things are always restored, especially in event
of error.
If you do find a better way, I would like to hear about it.
Barry Evans
Canberra, Australia
----------------------------
I am using the WebBrowser control in VB6. I have the box loaded with
HTML and I want to print the thing off, but when I print it, I want to
set the header and footer that show up on each printed page. In the
real IE, you can do this from the "Page Setup" screen, but how can I
do this programmatically with the WebBrowser control? Any help would
be GREATLY appreciated! Thanks in advance!
brad guilford