Nikhil
Nikhil

Reputation: 19

How can I create an Image from html string content?

I am sending mails of this html created page, but that page design is changed in outlook. so i am trying to convert this html source to image and send mails.

so I have stored html source in string variable like this.

string Str1 = "<table id='myTable3' style='width:100%;background-color: #4B4B4B;border:2px solid #8b8b8b;padding:0% 2% 0% 0%;margin-top:2% !important;'><tbody><tr><td style='text-align:left;padding:2% 0% 0% 2%;font-size:20px;color:#6BB6E7;font-weight:600;'></td></tr> </tbody></table>"; 

i have tried using this solution but it is not working.

so how can i convert this html source into image?

Upvotes: 0

Views: 336

Answers (1)

shiv
shiv

Reputation: 1952

Fire gimp or any other image manipulation program. Even pain will do on Widows(missing n err) and type the string. Save as png or jpeg.

Upvotes: 1

Related Questions