Hi,
Is there any way in aspose to import HTML tags such as <strong>
or <i>
into a word document and have them display in their word counterparts?
For example, if I have the following HTML:
This is <strong>Bold Text</strong>.
It would display in word:
This is Bold Text
Cheers
Hi
Thanks for your interest in Aspose.Words. Of course you can do it. Please try using the following code:
// Create document.
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
// Insert HTML
builder.InsertHtml("This is <strong>Bold Text</strong>.");
doc.Save("out.doc");
Best regards,