Click here to Skip to main content
15,894,284 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 vb.net..i have used the code given in msdn website


http://support.microsoft.com/kb/304643/en-us



http://support.microsoft.com/kb/304643/en-us[^]







643/en-us">http://support.microsoft.com/kb/304643/en-us[^]


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......
Posted

1 solution

VB
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
 
Share this answer
 

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



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