none
Html Render/Conversion to Image (.png file) WITHOUT a WebBrowser control. RRS feed

  • Question

  • I have a html string/document (if you view source any web page in the IE browser, the resulting html code) stored in the database and I need to convert this html to an image using C#/.Net service. The current code is using WebBrowser and it works fine except it is pretty slow and runs into issues once in a while.

    I want to replace this capability (html conversion to .png image) without using WebBrowser. I tried to use TheArtofdev.HtmlRenderer (3rd party) which appears to solve most issues but it seems to run into problems when it encounters html (containing multiple "div>" may be ?) and it doesn't generate the image correctly.It generates only a partial image.

    What are the other options if HtmlRender doesn't work as expected ? Highly appreciate any help !!
    Tuesday, December 15, 2015 10:43 PM

Answers

All replies