Click here to Skip to main content
15,885,936 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have the following html

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Happy Birthday</title>
</head>

<body background="http://172.17.200.54/Bday_Mail_Template/BG_2.jpg">
    <div style='width: 100%; height: auto; float: left;'>
        <div style='font-size: 24px; width: 100%; float: left;'>
            Dear User,
        </div>
        <div style='font-size: 22px; line-height: 50px; width: 100%; float: left; text-align: center; margin-top: 40px;'>
            Wish you a very happy Birth day.
        </div>
        <div style='font-size: 18px; letter-spacing: 1px; font-style: italic; width: 100%; float: left; margin-top: 50px;'>
            Best Wishes,
            <br />
            HR Team<br />
             Test Company Ltd
            <br /><br />
            <span style="color:Red;">***Note - </span> This is a system generated email,please do not reply.
        </div>
    </div>
</body>
</html>


What I have tried:

I am trying to convert html to image but can't
Posted
Updated 2-Oct-18 21:36pm

1 solution

Google is your friend... Found the link below with this search: c# convert html to image - Google[^]

* c# - Convert HTML string to image - Stack Overflow[^]
 
Share this answer
 
Comments
Vikram Singh Rathaur 25-Feb-17 6:15am    
No able to find any solution.
Graeme_Grant 25-Feb-17 6:17am    
The last link IS the answer
Vikram Singh Rathaur 25-Feb-17 6:19am    
it showing html renderer error

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900