c# - How to detect height of web page without using a browser control -


i need rendered height of web page when rendered in ie.

i'm using webbrowser control load html page , find document's clientheight (or scrollheight, forget which). works well.

the problem is, need code run web service result of api call , launching windows form based control load in webbrowser control ugly , (i assume) incredibly resource hungry.

so, there headless browser implementation out there allow me figure out height of rendered html? know wouldn't work iframes, divs scroll etc, , doesn't need super accurate (within 200px fine).

the html pages test range around 700px high many thousands of pixels high, figuring out rough height perfect. html used tends quite simple, these pages html emails, extracted email , sent web browser.

this depends on browser , rendering engine. have use renderer.

if html standard one, should able use htmlayout's in-memory rendering capability , results similar other browsers.

it has .net wrapper @ http://code.google.com/p/nabu-library/


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -