I have a string with whole html from web page. I want to save this string as image with all html rules. At the end to have image from webpage. How can I sol开发者_开发问答ve it with c# and asp.net?
You can convert a HTML file to a PDF by using the following component:
http://code.google.com/p/wkhtmltopdf/
Then use ghostscript to convert the PDF to an image.
You can use this project as a source of inspiration for your code.
http://www.codeproject.com/KB/graphics/IECapture.aspx
Of course, this is a regular Winform-application
Or this component:
http://www.acasystems.com/en/web-thumb-activex/faq-convert-html-to-image-in-asp.net.htm
精彩评论