converting HTML into an image in asp.net application

1. in asp.net application, i will draw certain shapes (rectangle,elipse etc). using basic html such as table,td tr, <p> etc. ..so basicaly a html deigner in broswer on client side.

2. i will also type some text in <P> tags ...

3. will set fonts , style using using css.

all this will happen in browser just like a basic html editor after that i will post asp.net page back to server. onserver side i want to convert the HTML view that i was seeing in the browser into an image.

a)can some one please suggest how to do this in .net .40 or 3.0 ?

b)are there any third part components that can do this. are these third party components multithreaded and scalable?

There are a few services out there that serve up screenshots of any webpage for you to display on your website. One popular one is
Kwiboo; this is the one that
DotNetKicks uses. For some time now I've wondered what the easiest way to do this in .NET was, and today I stumbled upon the undocumented WebBrowser.DrawToBitmap method that makes this extremely easy to do.

// Get a Bitmap representation of the webpage as it's rendered in the WebBrowser control Bitmap bitmap = new Bitmap(wb.Width, wb.Height); wb.DrawToBitmap(bitmap, new Rectangle(0, 0, wb.Width, wb.Height)); wb.Dispose();