PC Review


Reply
Thread Tools Rate Thread

Browser component in Windows form

 
 
Chris Rausch
Guest
Posts: n/a
 
      5th Dec 2003
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?

 
Reply With Quote
 
 
 
 
Marc Scheuner [MVP ADSI]
Guest
Posts: n/a
 
      8th Dec 2003
>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
 
Reply With Quote
 
Chris Rausch
Guest
Posts: n/a
 
      8th Dec 2003
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

>-----Original Message-----
>>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
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem debugging ActiveX component in Windows Form Steve Roberts Microsoft Dot NET Framework Forms 1 19th Jun 2004 11:22 PM
Unspecified error when adding a new Windows form or component. =?Utf-8?B?R2xvc3M=?= Microsoft Dot NET 1 19th Jun 2004 11:02 PM
Windows form with ie browser component Per Erik Gransøe Microsoft Dot NET Framework Forms 0 27th Nov 2003 06:12 PM
How can I get a component to work in an ASP.NET application that works in a Windows Form? Dean R. Henderson Microsoft ASP .NET 6 19th Nov 2003 09:01 AM
Windows form component Keith Microsoft Dot NET Framework Forms 0 13th Nov 2003 03:06 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:13 PM.