Re: How to get the Height of Web page from Web Browser control?
Quote:
Originally Posted by jmsrickland
OK, so it isn't the buttons heights; ummmm. Well then I guess the
WebBrowser1.Document.Body.ScrollHeight
doesn't always yield correct heights. Any idea what does?
If you look at following link then you will recognize as the wrong values returned by IE for scrollHeigh and scrollWidth is a known bug.
http://www.quirksmode.org/dom/w3c_cs...ml#elementview
Author of that page has mentioned that IE 8 beta has corrected it. On the other hand, Mozilla Firefox returns correct values. There is a Mozilla Active-X control available that we may replace our current IE control with. I will try this tonight to see if it's a direct replacement or need further coding work to be done. We at first step, need this Mozilla control to allow access to DOM.
-- Ruturaaj.
Re: How to get the Height of Web page from Web Browser control?
The Mozilla ActiveX control is badly outdated plus it does not support everything, at least for me many things don't work.