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

Free Support Forum - aspose.com

Problem with inserting HTML in Aspose.Words

Hi,

I am using evaluation version of Aspose.Words 6.1.0 for testing the product.

but i am facing problem when inserting the HTML content at bookmark. I used the code like,

string SecTextHTML="Date FieldDate FieldDate Field ";

Bookmark bookDocSecText = docSec.Range.Bookmarks["SectionText1"];

bookDocSecText.Text = "";

builderSec.MoveToBookmark("SectionText1");

builderSec.InsertHtml(SecTextHTML);

builderSec.EndBookmark("SectionText1");

but i am not able to fined fields on the Word Document. That HTML Content is comming from data base, i can't able to change that html content. Can any one please help me out to get those fields in the word document.....

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

Thanks for your reqeust. Aspose.Worddoesnot support HTML INPUTs. Please see the following document to learn more about features supported upon HTML import.

http://www.aspose.com/community/files/51/file-format-components/aspose.words-for-.net-and-java/entry108980.aspx

As a workaround you can replace HTML INPUTs with placeholders, and then replace placeholders with Word formfields. You can use ReplaceEvaluator to achieve this. Please follow the link to learn more about ReplaceEvaluator

http://www.aspose.com/documentation/file-format-components/aspose.words-for-.net-and-java/aspose.words.range.replace_overload_3.html

Best regards.