Save HTML file to disk from webbrowser control

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • FullyH3ktik
    New Member
    • Sep 2007
    • 52

    Save HTML file to disk from webbrowser control

    Sorry for posting the same question again but this is really urgent and it would be great if somebody could help me out. heres the problem:

    I'm using Visual Basic 2005 Express Edition and I made a web browsing program,
    I was wondering how you save the page that is displayed in the browser to a HTML file somewhere on the computer. but I also need the save file dialog box to come up

    So if there are any experts out there that can help it would be much appreciated.
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    I'm pretty sure one of the properties of the webbrowser control gives you the complete HTML. Just open a text file and write it there, giving the file an HTM or HTML extension.

    As for the save-file dialogue, in VB6 that would be done using the Microsoft Common Dialog control (added in project references) - not sure whether it's still the same in VB2005.

    Oh, and by the way - a message title of "Urgent" won't get you more attention. Just the opposite, in fact. Most people will just skip over it on the list, because the title doesn't give any indication of what the message is about.

    Comment

    • FullyH3ktik
      New Member
      • Sep 2007
      • 52

      #3
      Thanks for that, I did manage to save the file with a HTML extension, but I cant work out how to save it through the dialog, none the less. at least I can get the document to save :)

      Comment

      • Killer42
        Recognized Expert Expert
        • Oct 2006
        • 8429

        #4
        Originally posted by FullyH3ktik
        Thanks for that, I did manage to save the file with a HTML extension, but I cant work out how to save it through the dialog, none the less. at least I can get the document to save :)
        As far as I'm aware, the dialogue doesn't actually have anything to do with loading or saving - it's just used to choose a filename. After that, what you do with the name is up to you.

        Comment

        Working...