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

Free Support Forum - aspose.com

Issue Document Conversion - Word to HTML

We are using Aspose air licensed version, I am encountering an issue while conversion of Doc file to HTML file. Yellow lines are occurring in a table with empty content. Attached is the document file I am tring to convert. Can you please provide any guide line/solution for it.
Thank you !

Hi Abhijeet,

Thanks for your inquiry.

While using the latest version of Aspose.Words i.e. 11.7.0, I managed to reproduce this issue on my side. I have logged this issue in our bug tracking system. The issue ID is WORDSNET-6908. Your request has also been linked to this issue and you will be notified as soon as it is resolved. Sorry for the inconvenience.

Moreover, as a temporary work around, please use the following code snippet:

Document doc = new Document(@"c:\test\in.doc");
foreach(Paragraph para in doc.GetChildNodes(NodeType.Paragraph, true))
    para.ParagraphBreakFont.HighlightColor = Color.Empty;

I hope, this will help.

Best Regards,

Hi Abhijeet,

Thank you for being patient.

Our development team has completed the work on your issue (WORDSNET-6908) and has come to a conclusion that this issue and the undesired behaviour you’re observing is actually not a bug in Aspose.Words. So, we’ve closed this issue as ‘Not a Bug’.

The problem occurs because the input .doc document contains highlights which causes the highlight color appear in output document. In this case, Aspose.Words mimics the behaviour of Microsoft Word i.e. please open the original document and save it as web page ( save as=>other formats => choose “Web Page” as format) and you will notice that output produced by Microsoft Word does also contain the highlights.

To overcome this problem, you just need to delete the highlights manually from the original document. The simplest solution is: select all text in the document (Crtl + A) and then set “Text Highlight Color” to “No Color”.

If we can help you with anything else, please feel free to ask.

Best regards,