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

Free Support Forum - aspose.com

Convert html String to Rtf String


i have a HTML string and i want to convert it to RTF string before dispalying in merge field of a Word Document. Is it possible to do it with your tool


Thanks for your interest in ASpose products. You can use InserHtml method to insert HTML into the document and then save this document in RTF format. For example see the following code.

Document doc = new Document();

DocumentBuilder builder = new DocumentBuilder(doc);
doc.Save("out.rtf", SaveFormat.Rtf);

Also you can insert HTML into the document during mail merge. See the following link.

Best regards.


Here is my issue

I am working on a project to create a contract document. Based on the condition it will generate a word document.

After the generation, the amount field will be a variable which will be updated when every it changes.

I am using word 2007 xml schema. Does your product support parsing based on that.




Thanks for your inquiry. Aspose.Words supports OOXML format. Please see the following link to learn more about file formats supported by Aspose.Words.

Also please attach your document for testing.

Best regards.