Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert a HTML Control (Div or Table) to an image using C#

Is it possible to convert a Html Control to an image in C#?

Is there any C# method where I can pass the Html Control object and return an image of that html control?

Is this possible, any suggestions?

like image 305
ACP Avatar asked Dec 29 '09 03:12

ACP


People also ask

How do I download a div content as an image?

DIV content can be saved as an image with the help of html2canvas() function in JavaScript. DIV tag defines a section in HTML document.


1 Answers

We have used http://iecapt.sourceforge.net/ to convert HTML to image. You can try it out. It is available for FREE.

like image 140
Vijay Avatar answered Oct 10 '22 20:10

Vijay