insertHtml takes a long time

Hello ,

we have a problem when we use the insertHtml, it works but takes a really long time for just a short html,Is it normal ?

The html :

<table width="100%">
    <tbody>
        <tr valign="top">
            <td style="width: 10%;"><img width="60" height="75" src="http://www.cc-miribel.fr/images/stories/culture/logoacademie.jpg" style="width: 91px; height: 77px;" /> </td>
            <td style="width: 90%;"><span style="font-family: arial,helvetica,sans-serif; font-size: 8pt;">&nbsp;Allée Pierre Perret -&nbsp;XXXXX Miribel<br />tél. 04 78 55 62 45 <br /><br />e-mail : XXXXXXX@cc-miribel.fr</span></td>
        </tr>
    </tbody>
</table>

Hi

Thanks for your request. On my side it takes about two seconds to generate a document from your HTML:

DateTime start = DateTime.Now;
string html ="<table width=\"100%\"><tbody><tr valign=\"top\"><td style=\"width: 10%;\"><img width=\"60\" height=\"75\" src=\"http://www.cc-miribel.fr/images/stories/culture/logoacademie.jpg\" style=\"width: 91px; height: 77px;\" /></td><td style=\"width: 90%;\">&nbsp;Allée Pierre Perret -&nbsp;XXXXX Miribel<br />           tél. 04 78 55 62 45 <br />    <br />      e-mail : XXXXXXX@cc-miribel.fr</td></tr></tbody></table><br />         <br />         <br />";

DocumentBuilder builder = new DocumentBuilder();
builder.InsertHtml(html);
builder.Document.Save(@"Test001\out.doc");

Console.WriteLine((DateTime.Now-start).TotalSeconds);

I think the problem on your side might occur because the image is loaded too slowly from internet. Try replacing the image with local and checking if this helps.

Best regards,