Hello
I use the RadRichTextBox component (version 2014.1.402.40)
When I try to load a specific html source, I get an IndexOutOfRangeException exception.
It's works with other source, but one specific source create this problem.
My simple code :
var mail = File.ReadAllText(@"Mailtest2.html");
var htmlProvider = new HtmlFormatProvider();
radRichTextBox1.Document = htmlProvider.Import(mail); // ERROR / IndexOutOfRangeException
The HTML Source :
<html><head></head>
<body style = 'font-family:Arial, Helvetica, sans-serif; font-size:12px;'>
Bonjour,
<br><br>
<br><br>
<br><br>
<br><br>
<br><br>
<br><br>
<table border=0 style = 'font-family:Arial, Helvetica, sans-serif; font-size:12px;font-weight:bolder;'>
<tr>
<td rowspan=4 style="width:80px;"></td>
<td colspan=2></td>
</tr>
<tr>
<td>
<br></td>
<td>
<br></td>
</tr>
<tr>
<td colspan=2></td>
</tr>
</table>
<br><br><br><br>
</body>
</html>
Thank you very much for your help and sorry for my bad english
I use the RadRichTextBox component (version 2014.1.402.40)
When I try to load a specific html source, I get an IndexOutOfRangeException exception.
It's works with other source, but one specific source create this problem.
My simple code :
var mail = File.ReadAllText(@"Mailtest2.html");
var htmlProvider = new HtmlFormatProvider();
radRichTextBox1.Document = htmlProvider.Import(mail); // ERROR / IndexOutOfRangeException
The HTML Source :
<html><head></head>
<body style = 'font-family:Arial, Helvetica, sans-serif; font-size:12px;'>
Bonjour,
<br><br>
<br><br>
<br><br>
<br><br>
<br><br>
<br><br>
<table border=0 style = 'font-family:Arial, Helvetica, sans-serif; font-size:12px;font-weight:bolder;'>
<tr>
<td rowspan=4 style="width:80px;"></td>
<td colspan=2></td>
</tr>
<tr>
<td>
<br></td>
<td>
<br></td>
</tr>
<tr>
<td colspan=2></td>
</tr>
</table>
<br><br><br><br>
</body>
</html>
Thank you very much for your help and sorry for my bad english