Free Support Forum - aspose.com

Add HTMT image in word file :- Technical issue

This is the HTML text:

What is:    ?

When i transfer it into word file, imgae didnt display in file. Could you please tell me how to add this image


This message was posted using Aspose.Live 2 Forum

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your inquiry. Please make sure that the image exists on the following path. Maybe you should use full path instead of relative.

I use the following code for testing:

// Create document and DocumentBuidler object

Document doc = new Document();

DocumentBuilder builder = new DocumentBuilder(doc);

// Insert HTML.

string html =

@"

";

builder.InsertHtml(html);

doc.Save(@"C:\Temp\out.doc");

Best regards,