Words <-> HTML with mso-pattern

Hi.

We’re about 90% ready to replace MS Word on our servers with Aspose.Words for .NET, and our customer is ready to purchase some licences + support, however we’ve just hit a gotcha:

When saving to HTML, or loading from HTML, Aspose.Words is discarding some settings for tables, such as mso-pattern. When saving to/from .doc however it’s just fine.

We need Aspose.Words to replicate Word’s behaviour, which so far it does 99%, however in this case it is different, and I’ve not found a way around this yet.

I can understand that mso-pattern is not supported in HTML, which is why for our HTML products we include a background image that has the same pattern (horizontal stripes). Aspose.Words is also discarding that background image setting, so now our customers product does not work in .doc or .html format!

This is probably a deal breaker for our customer, and they are considering not purchasing if we cannot resolve (fingers crossed there’s an obvious solution that I’m just too worn out to find!). So any help is much appreciated!

Many thanks,
Robin

Hi Robin,

Thank you for considering Aspose.Words. First of all, please note that Aspose.Words was originally designed to work with MS Word documents. Upon processing HTML, some features of HTML might be lost. You can find a list of limitations upon HTML exporting/importing here:
https://docs.aspose.com/words/net/convert-a-document-to-html-mhtml-or-epub/

Secondly, could you please attach your input HTML documents you’re getting problems with here for testing? I will investigate the issue on my side and provide you more information.

Best Regards,

Hi Awais,

Thanks for the reply and info, that’s really useful. Interestringly we actually only care about loading from HTML and saving to DOC at present.

I’ve attached a zip with the following:

  • HTML with shaded table.html
    - HTML that loads as we want in IE and MS Word
  • stripes.jpg
    - image needed for IR
  • HTML with shaded table - loaded with MS Word - saved as DOC.doc
  • HTML with shaded table - loaded with Aspose - saved as DOC.doc
    - examples of the difference between Word and Aspose handling of that HTML.

Do you think there’s any way we can fix this at out end, with a custom class perhaps, or would it require you guys to “fix”?

Many thanks,
Robin

Hi Robin,

Thanks for your inquiry.

The problem occurs because Aspose.Words does not fully support table styles upon HTML import. For the sake of correction, your request has been linked to the appropriate issue. The issue ID is WORDSNET-318. You will be notified as soon as this feature is available.

Sorry for inconvenience.

Best Regards,

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

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

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

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