We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Adding html to a bookmark

hello,
how do i add an html table to a bookmark?
thanks

This message was posted using Aspose.Live 2 Forum

Hello!
Thank you for your interest in Aspose.Words.
This can be done like this (assuming that html is a string variable containing HTML fragment, say a table):

Document doc = new Document("sample_in.doc");
DocumentBuilder builder = new DocumentBuilder(doc);
builder.MoveToBookmark("MyBookmark");
builder.InsertHtml(html);
doc.Save("sample_out.doc");

Regards,