How to customize or suppress header and footer when printing from WebBrowser control 
Author Message
 How to customize or suppress header and footer when printing from WebBrowser control

Dear VB Experts

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?

Thanks in advance

Regards,

Faiz



Sat, 19 Nov 2005 12:45:03 GMT  
 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



Sat, 19 Nov 2005 23:24:05 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. How to customize/suppress header and footer when printing from WebBrowser control

2. How to customize or suppress header and footer when printing from WebBrowser control

3. How to customize/suppress header and footer when printing from WebBrowser control

4. print the customise header and footer when using webbrowser

5. Printing webbrowser - removing header and footer programatically

6. programmatically controlling header/footer on doc printed from WebBrowser control

7. Suppressing Page Headers on Report Footer

8. How to print web content without printing the headers and footers

9. Printing custom header/footer in Outlook

10. Document.PrintOut doesn't print borders in Header / Footer

11. help needed: Printing with Headers, footers and rtf boxes

12. window.print() WITHOUT header and footer?

 

 
Powered by phpBB® Forum Software