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

Free Support Forum - aspose.com

Conversion of HTML: Lost colors of table borders

Hi Aspose Team,

we're using the latest Aspose.Words .NET 10.1.1_hotfix to convert HTML to docx and png files. During that process the colors of table borders within the HTML are lost.

You can find the HTML file on the attached file: tables.zip

The code to convert the binary content of the file is like this:
MemoryStream memoryStream = new MemoryStream(htmlContent);
Document document = new Document(memoryStream);
document.Save("c:\\myfile.docx", SaveFormat.Docx);
document.Save("c:\\myfile.png", SaveFormat.Png);

The docx file contain the border, yet the color is lost. The png file on the other hand does not have any border at all. So beside the issue that the colors are lost, there is a mismatch between the output of a rendered docx and image file.

See the attached file aspose_conversion.png for a visual view onto the issue. The HTML is shown as well as the output.

Is this a known bug ? Do we do something wrong ? Can you give information about the status on this ? Is there an upcoming version planned where this will work ?

Thanks alot for your support!

Kind regards,


Thank you for reporting this problem to us. I managed to reproduce the problem on my side. Your request has been linked to the appropriate issue. You will be notified as soon as it is resolved.

Best regards,

Hi Alexey,

thanks for the quick response. Can you tell me whats the prio of the ticket you've created and maybe even in what version and when it may be fixed already when all works well ?

Thanks alot and kind regards,


Thanks for your request. The problem probably occur because Aspose.Words does not support inheriting styles from parent objects. Unfortunately, at the moment, I cannot provide you a reliable estimate. Once the responsible developer analyze the problem we will provide you more information,

Also, I tried refactoring your HTML (see the attached files) As you can see in this case, the PDF and DOC files look closer to the original.

Best regards,

Issue still persist in new Aspose.Words for .NET v10.5.

<!–[if gte mso 10]> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0pt 5.4pt 0pt 5.4pt; mso-para-margin:0pt; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:11.0pt; font-family:"Calibri","sans-serif"; mso-ascii-font-family:Calibri; mso-ascii-theme-font:minor-latin; mso-fareast-font-family:SimSun; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Calibri; mso-hansi-theme-font:minor-latin; mso-bidi-font-family:Arial; mso-bidi-theme-font:minor-bidi;}



Thanks for your request. Yes, you are right, unfortunately, the issue is not resolved yet. We will let you know once it is fixed.

Best regards,

Still unfixed in new Aspose.Words version 10.8 (from 10.01.2012).

Hi Oliver,

Thanks for your inquiry. Unfortunately, this issue is not resolved yet. However, the responsible developer has already completed the analysis of this issue. The root cause has been identified. Also, at the moment I can’t provide you the ETA for this issue. We will keep you informed and let you know once it is resolved. Sorry for inconvenience.

Best Regards,

Hi Awais,

thanks for the quick response. Can you also add such status update to the following tickets please. They're all from me (us).





It would be very helpful for us to have a recent status on those.

Thanks a lot,

Hi Oliver,

Thanks for your inquiry. Unfortunately, your issues are still pending for analysis. Once our developers analyze these issues, we will be able to provide you an estimate.Sorry for inconvenience.


It is to update you that I have tested your documents with Aspose.Words v11.1.0 and I can still reproduce this issue on my side. I have passed your concern to our development team. As soon as, any information is shared by them, I will be more than happy to share that with you. Thank you for your patience and sorry for the inconvenience.

Best Regards,

The issues you have found earlier (filed as WORDSNET-4957) have been fixed in this .NET update and this Java update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.