Results 1 to 2 of 2

Thread: [RESOLVED] Open/Save Webpage - Error

  1. #1

    Thread Starter
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Resolved [RESOLVED] Open/Save Webpage - Error

    I am trying to save and open webpages in my browser. Here is the code that i am using and getting errors with:

    VB Code:
    1. Private Sub mnuOpen_Click()
    2.     Me.dlg1.Filter = "HTML Files (*.html)|*.html; HTM Files (*.htm)|*.htm; PHP Files (*.php)|*.php; ASP Files (*.asp)|*.asp; SHTML Files (*.shtml)|*.shtml; CGI Files (*.cgi)|*.cgi"
    3.     dlg1.ShowOpen
    4.     brwWebBrowser.Navigate Me.dlg1.filename
    5. End Sub
    Error:
    Code:
    When the common dialog box opens, the file types are not dislaying correctly
    VB Code:
    1. Private Sub mnuSaveAs_Click()
    2.     Me.dlg1.Filter = "HTML Files (*.html)|*.html; HTM Files (*.htm)|*.htm; PHP Files (*.php)|*.php; ASP Files (*.asp)|*.asp; SHTML Files (*.shtml)|*.shtml; CGI Files (*.cgi)|*.cgi"
    3.     dlg1.ShowSave
    4.     brwWebBrowser.Document Me.dlg1.filename
    5. End Sub
    Error:
    Code:
    Compile Error: Invaid Use of Propery
    
        brwWebBrowser.Document Me.dlg1.filename
    is highlited
    My usual boring signature: Something

  2. #2
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697

    Re: Open/Save Webpage - Error

    VB Code:
    1. Private Sub mnuOpen_Click()
    2.     Me.dlg1.Filter = "HTML Files (*.html)|*.html| HTM Files (*.htm)|*.htm| PHP Files (*.php)|*.php| ASP Files (*.asp)|*.asp| SHTML Files (*.shtml)|*.shtml| CGI Files (*.cgi)|*.cgi"
    3.     dlg1.ShowOpen
    4.     brwWebBrowser.Navigate Me.dlg1.FileName
    5. End Sub
    6.  
    7.  
    8. Private Sub mnuSave_Click()
    9. Me.dlg1.Filter = "HTML Files (*.html)|*.html; HTM Files (*.htm)|*.htm; PHP Files (*.php)|*.php; ASP Files (*.asp)|*.asp; SHTML Files (*.shtml)|*.shtml; CGI Files (*.cgi)|*.cgi"
    10.     dlg1.ShowSave
    11.    
    12.     Open Me.dlg1.FileName For Output As #1
    13.     Print #1, brwWebBrowser.Document.body.innerhtml
    14.     Close #1
    15. End Sub

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