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

Free Support Forum - aspose.com

How to get the HTML Nodes from the Word Documents using C#?

How to get the HTML Nodes from the Word Documents using C#?

Hi,

Thanks for your inquiry. Yes, you can achieve this using Aspose.Words e.g. please use the following code to get HTML representation of individual Paragraphs:

Document doc = new Document(MyDir + @"in.docx");
StringBuilder sb = new StringBuilder();
foreach(Paragraph para in doc.GetChildNodes(NodeType.Paragraph, true))
    sb.Append(para.ToString(SaveFormat.Html));

I hope, this helps.

Best regards,