Results 1 to 3 of 3

Thread: Web-Page to JPG Conversion???

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2004
    Posts
    113

    Web-Page to JPG Conversion???

    I need to capture a web page even parts that are hidden as follows:

    1) Start with a blank VB6 project
    2) Add a button and a webbrowser control
    3) Have the webbrowser control navigate to a long, complicated web page...
    4) When the button is pressed, I need to save to disk
    a JPG image of the entire web page - even if much of it is hidden from view.

    Does anybody have any idea what code to put in the button?

  2. #2
    Member michaeljustman's Avatar
    Join Date
    Apr 2004
    Posts
    52
    What exactly are you trying to accomplish? Maybe there is a better way of doing this?

  3. #3
    Fanatic Member alexandros's Avatar
    Join Date
    Oct 2002
    Location
    Milky Way Galaxy
    Posts
    694
    i dont know but i know how to get the .hwnd handle of the webbrowser window .this might help you.

    use the GetFocus API function
    then do this each time you want to get the hwnd of the webbrowser control

    webbrowser1.setfocus
    webbrowser_hwnd=GetFocus

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