REA_ANDREW
asked on
Convert HTML to Image
Hi,
Can anybody give me an example or point me in the direction of a tutorial which shows me code to convert HTML code into an Image of that renedered code, i.e. a web page
Thanks in advance
Andrew
Can anybody give me an example or point me in the direction of a tutorial which shows me code to convert HTML code into an Image of that renedered code, i.e. a web page
Thanks in advance
Andrew
ASKER
have you got any code that could get me on my way with this. I particular this part
"render all of its htmlelements by hand in a new graphicsobject of a bitmap"
thanks
Andrew
"render all of its htmlelements by hand in a new graphicsobject of a bitmap"
thanks
Andrew
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
you have to possibilities:
1. you can make a screenshot from the visible area(the webbrowsers cliprectangle), then you have to scroll by code down to teh next page and grab another screenshot. do it as often as you need until you reached the bottom. at least, you will have to put all that screenshots together.
the page down message can be send like this:
this.webBrowser1.Focus();
SendKeys.Send("{PGDN}");
2.you will have to go through the htmldocument object and render all of its htmlelements by hand in a new graphicsobject of a bitmap.
the initial size of that bitmap has to be