Click here to Skip to main content
15,120,078 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i get the following error message when i try to reffer to a word doccument open in web browser control in have used the code given in msdn website[^]


Private Sub WebBrowser1_NavigateComplete2(ByVal sender As System.Object, ByVal e As AxSHDocVw.DWebBrowserEvents2_NavigateComplete2Event) Handles

' get a reference to the word app that has opened
Dim oDocument As Object = e.pDisp.Document
'Note: You can use the reference to the document object to automate the document.
MsgBox("File opened by: " & oDocument.Application.Name)
End Sub

Error 1 Type 'AxSHDocVw.DWebBrowserEvents2_NavigateComplete2Event' is not defined.

please help......

1 solution

Private Sub AxWebBrowser1_NavigateComplete2(sender As Object, e As AxSHDocVw.DWebBrowserEvents2_NavigateComplete2Event) Handles AxWebBrowser1.NavigateComplete2
        Parent.Text = AxWebBrowser1.LocationName
        TextBoxX1.Text = AxWebBrowser1.LocationURL
        Form1.Text = AxWebBrowser1.LocationName
    End Sub

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900