Results 1 to 2 of 2

Thread: C'mon gurus. Setting 'Internet Options' in webbrowser control

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2000
    Location
    Christchurch, New Zealand
    Posts
    10

    Post

    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?

  2. #2
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845

    Post

    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/

    Mark
    -------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width