Browser component in Windows form

  • Thread starter Thread starter Chris Rausch
  • Start date Start date
C

Chris Rausch

I have a browser component placed in my Windows form. I
have a reference to mshtml. All aspects of the browser
(events, navigation, etc.) seem to work fine.

I am creating an instance of the document as such:

HTMLDocument myPage = (HTMLDocument)
axWebBrowser1.Document;
string oldPage = myPage.body.innerHTML;

I am modifying the HTML and then writing it back to
myPage.body.innerHTML.

This works great on my PC and others that have the VS.NET
IDE loaded. On other PC's that only contain the
redistributible framework 1.1, the entire program works
fine except the modification of the HTML as explained
above.

Has anyone experienced a similar problem? Is there some
additional *.dll file I should include? ( I already
include the AxInterop.SHDocVw.dll file).

Perhaps there is a more efficient way to modify the HTML?
 
Has anyone experienced a similar problem? Is there some
additional *.dll file I should include? ( I already
include the AxInterop.SHDocVw.dll file).

You might also need the Primary Interop Assembly for
microsoft.mshtml.dll - which is installed with VS.NET, I believe.

Marc
================================================================
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch
 
Thanks Marc, you were correct!

I was including the 'Interop.SHDocVw.dll' and
the 'AxInterop.SHDocVw.dll' but I had not set
the 'microsoft.mshtml.dll' to "Copy Local" in my project.

Chris
 
Back
Top