W
W.John Guineau
Using Visual Studio.Net 2005 Team Edition for Software Developers on a
Windows XP machine.
Microsoft Support article 304662, dated 1/10/2006 shows how to use the
WebBrowser control to open word/excel documents inside a Form.
http://support.microsoft.com/?id=304662
The basic code works - I can put a WebBrowser control into a form and then
call webBrowser1.Navigate( url ) and if 'url' is a .doc or a .xls file,
word/excel open and display the document. Very cool!
However, the article goes on to say that you can then get ahold of the
automation object from within the "NavigateComplete2" event handler (see
steps 7 and 8 in the article).
However, the webBrowser1 object created by the designer does not appear to
have a 'NavigateComplete2' method (event) and I can find no help for the
'AxSHDocVw' class referenced in the parameter list for the NavigateComplete2
event handler code.
The fact that the article's code has a WebBrowser instance named
'axWebBrowser1' leads me to believe that I do not have the same WebBrowser
class used in the article. The article is dated 1/10/06, so it appears very
current and specifically mentions that it applies to .Net 2005.
Has anyone gotten this to work?
thanks!
john
Windows XP machine.
Microsoft Support article 304662, dated 1/10/2006 shows how to use the
WebBrowser control to open word/excel documents inside a Form.
http://support.microsoft.com/?id=304662
The basic code works - I can put a WebBrowser control into a form and then
call webBrowser1.Navigate( url ) and if 'url' is a .doc or a .xls file,
word/excel open and display the document. Very cool!
However, the article goes on to say that you can then get ahold of the
automation object from within the "NavigateComplete2" event handler (see
steps 7 and 8 in the article).
However, the webBrowser1 object created by the designer does not appear to
have a 'NavigateComplete2' method (event) and I can find no help for the
'AxSHDocVw' class referenced in the parameter list for the NavigateComplete2
event handler code.
The fact that the article's code has a WebBrowser instance named
'axWebBrowser1' leads me to believe that I do not have the same WebBrowser
class used in the article. The article is dated 1/10/06, so it appears very
current and specifically mentions that it applies to .Net 2005.
Has anyone gotten this to work?
thanks!
john