To print contents of a WebBrowser you don't have to use that long routine, you can achieve it with 1 line of code:

Without showing the Print Dialog Box
WebBrowser1.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DONTPROMPTUSER

With the Print Dialog Box
WebBrowser1.ExecWB OLECMDID_PRINT,OLECMDEXECOPT_PROMPTUSER


Regards,


------------------

Serge

Software Developer
[email protected]
[email protected]