Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Save as HTML on WebBrowser Control

Save as HTML on WebBrowser Control

Scheduled Pinned Locked Moved C / C++ / MFC
htmltutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Max
    wrote on last edited by
    #1

    How to save the webpage on WebBrowser Control to file? A lot of function for WebBrowser control such as GoBack,GoForward,GoHome,Navigate,etc... but no function for save it. Please give me some idea for implement this function. Thanks

    _ 1 Reply Last reply
    0
    • M Max

      How to save the webpage on WebBrowser Control to file? A lot of function for WebBrowser control such as GoBack,GoForward,GoHome,Navigate,etc... but no function for save it. Please give me some idea for implement this function. Thanks

      _ Offline
      _ Offline
      _Superman_
      wrote on last edited by
      #2

      Here is an article on how it can be done - Retrieving the HTML source code[^] Since you're using a browser control you will need to call its get_Document method instead of GetHTMLDocument. I also recommend that you use the ATL smart pointer classes like CComPtr and CComQIPtr. Look at the Comments and Discussions section at the end of the article on other ways to do this.

      «_Superman_»  _I love work. It gives me something to do between weekends.

      _Microsoft MVP (Visual C++)

      Polymorphism in C

      M 1 Reply Last reply
      0
      • _ _Superman_

        Here is an article on how it can be done - Retrieving the HTML source code[^] Since you're using a browser control you will need to call its get_Document method instead of GetHTMLDocument. I also recommend that you use the ATL smart pointer classes like CComPtr and CComQIPtr. Look at the Comments and Discussions section at the end of the article on other ways to do this.

        «_Superman_»  _I love work. It gives me something to do between weekends.

        _Microsoft MVP (Visual C++)

        Polymorphism in C

        M Offline
        M Offline
        Max
        wrote on last edited by
        #3

        Thanks a lot "Superman"

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups