MSHTML.dll - How to provide a consistent version of the IE rendering engine used in installation installations

I am a little confused by what I read online about the redistribution of MSHTML.dll.

My application (this is a tool to retrieve consumer data) uses WebBrowserControl in a WebForms application (possibly WPF) and relies on MSHTML.dll.

As I understand it, MSHTML.dll exists to provide a .NET wrapper around the COM components that exist based on the currently installed version of IE on the client machine.

It is VERY important that the DOM HTML of the web page displayed in the WebBrowser control is consistent across all installations and the web server each client interacts with. It bothers me that if different versions of IE are installed on the client machines, then perhaps IE 6 is IE 9, then the html DOM may differ from machine to machine.

Say, for example, IE9 is installed on the server, and on the IE6 client machine, I think that the DOM representation on the HTML page may be different.

Can someone clarify

a), it’s really relevant whether it works the way I expect.

b) Can I use the used version of the rendering engine, possibly by redistributing the components?

Thanks for any help.

+4
source share
1 answer

Disclaimer: I am not an expert on this issue, I recently dealt with similar problems.

a), it’s really relevant whether it works the way I expect.

Yes, the WebBrowser control is dependent on the version of Internet Explorer installed.

b) Can I use the used version of the rendering engine, possibly by redistributing the components?

Take a look at the Version property of the control and this:
http://blogs.msdn.com/b/ie/archive/2009/03/10/more-ie8-extensibility-improvements.aspx
You are probably using SOL for IE6 and later, but if you have an application, check the installed version and update the registry key, if necessary, you should be able to control this.

+1
source

All Articles