Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4606876
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T00:37:31+00:00 2026-05-22T00:37:31+00:00

I need to get the rendered height of a web page when rendered in

  • 0

I need to get the rendered height of a web page when rendered in IE.

I’m currently using the WebBrowser control to load an HTML page and then find the document’s clientHeight (or scrollHeight, I forget which). This works well.

The problem is, I need this code to run from a web service as a result of an API call and launching a Windows Form based control to load in the WebBrowser control is ugly and (I assume) incredibly resource hungry.

So, is there a headless browser implementation out there that would allow me to figure out the likely height of the rendered HTML? I know this wouldn’t work for iframes, divs that scroll etc, and it doesn’t need to be super accurate (within 200px would be fine).

The HTML pages we test range from around 700px high to many thousands of pixels high, so figuring out the rough height would be perfect. The HTML used tends to be quite simple, as these pages are actually HTML emails, extracted from the email and sent to a web browser.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T00:37:32+00:00Added an answer on May 22, 2026 at 12:37 am

    This really depends on the browser and its rendering engine. You will probably have to use a renderer.

    If your HTML is a standard one, you should be able to use HTMLayout’s in-memory rendering capability and results will be similar to other browsers.

    It has a .NET wrapper at http://code.google.com/p/nabu-library/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i need to get the links in a page rendered in webbrowser control in
In widget's code I need to get access to HTML id of the rendered
Inside Controller I need to get a rendered string and do some actions with
I need to get Current page Identifier and current module in Magento. I used
I need to get information on loaded data percentage when UIWebView loads page. I
I've got a web browser control that needs to have a specific height set.
If I am using ajax control tool kit in my web application, let me
I have partials that get rendered as part of a complex page composition. Some
When Repeater contains no items it's not get rendered in HTML at all, even
I am using an Android WebView to display my app's HTML content. I need

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.