Free Support Forum - aspose.com

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 :
 Allée Pierre Perret - XXXXX Miribel
tél. 04 78 55 62 45

e-mail : XXXXXXX@cc-miribel.fr







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 ="  Allée Pierre Perret - XXXXX Miribel
tél. 04 78 55 62 45
e-mail : XXXXXXX@cc-miribel.fr



"
;

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,