I have found a likely cause!
I hope I am wrong. When rendering HTML under some conditions this might happens.
Please try to render this HTML (Pass the HTML directly from your code to RenderToImage, do not use input component) you expect to face this error.
When I did this the first one result in generic error. However, the error has gone After removing the tag!
Might the Tab space causes this problem! Maybe!
I hope I am wrong. When rendering HTML under some conditions this might happens.
Please try to render this HTML (Pass the HTML directly from your code to RenderToImage, do not use input component) you expect to face this error.
<html dir='rtl'>
<head>
<title></title>
<style type='text/css'>
body
{
background-color: #FF0000 ; background-gradient: #FFFFFF; background-gradient-angle: 60; corner-radius: 10px; margin: 0; padding: 2px;
}
.WhitePanel { background-color:white; corner-radius:10px; padding:15px; }
.Part1
{
clear: right;
display: block;
margin: 0px;
font-size: large;
font-color: #9ACD32;
}
.Part2
{
clear: right;
display: block;
float: left;
width: 75%;
margin-right: 3px;
margin-top: 0px;
white-space: nowrap;
font-size: large;
font-color: #9ACD32;
}
</style>
</head>
<body>
<blockquote id='blkQsead' class='WhitePanel'>
<p><span class='Part1'>Test</span><span class='Part2'>Test</span><br></p>
</blockquote>
<hr/>
<blockquote>
<span>Test HTML Rendered</span>
</blockquote>
</body>
</html>
Now remove the first blockquote tag from the HTML code<blockquote id='blkQsead' class='WhitePanel'>
<p><span class='Part1'>Test</span><span class='Part2'>Test</span><br></p>
</blockquote>
To be <html dir='rtl'>
<head>
<title></title>
<style type='text/css'>
body
{
background-color: #FF0000 ; background-gradient:#FFFFFF ; background-gradient-angle: 60; corner-radius: 10px; margin: 0; padding: 2px;
}
.WhitePanel { background-color:white; corner-radius:10px; padding:15px; }
.Part1
{
clear: right;
display: block;
margin: 0px;
font-size: large;
font-color: #9ACD32;
}
.Part2
{
clear: right;
display: block;
float: left;
width: 75%;
margin-right: 3px;
margin-top: 0px;
white-space: nowrap;
font-size: large;
font-color: #9ACD32;
}
</style>
</head>
<body>
<hr/>
<blockquote>
<span>Test HTML Rendered</span>
</blockquote>
</body>
</html>
Try to render the new HTML code.When I did this the first one result in generic error. However, the error has gone After removing the tag!
Might the Tab space causes this problem! Maybe!