PDA

Click to See Complete Forum and Search --> : C'mon gurus. Setting 'Internet Options' in webbrowser control


jha44
Feb 27th, 2000, 05:19 AM
When I print from my webbrowser with

On Local Error Resume Next
WebBrowser1.ExecWB OLECMDID_PRINT, OLECMDEXECOPT_DODEFAULT

the background image and colors won't print, which is due to the default tool->internet options->print background picture and colors check box not being set.
Anyone know how to check this from within VB6?

Mark Sreeves
Feb 28th, 2000, 06:20 PM
there's prbably an API call you can use but alternatively you could edit the registry key

REGEDIT4

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"Print_Background"="yes"

there are examples in http://www.vb-world.net/tips/