Convert html String to Rtf String

Hi,

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

Hi

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);
builder.InsertHtml("Aspose.Words");
doc.Save("out.rtf", SaveFormat.Rtf);

Also you can insert HTML into the document during mail merge. See the following link.
https://docs.aspose.com/words/net/mail-merge-and-reporting/

Best regards.

Hi

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.

thx

mahesh

Hi

Thanks for your inquiry. Aspose.Words supports OOXML format. Please see the following link to learn more about file formats supported by Aspose.Words.
https://docs.aspose.com/words/net/supported-document-formats/

Also please attach your document for testing.

Best regards.