Aspose.Words for .NET - inserting embedded html styles in word document

Hello,

We are using aspose.words (v6.0.0) to output a number of questions to a word document.

The questions themselves are in HTML and are created with an HTML editor.

Using this editor the user can create HTML tables and select from a number of predefined styles. When this is done, the question HTML contains a element with all of the predefined css classes inserted.

When the question HTML (with the table and the embedded styles) is inserted into the document via the builder.InsertHTML() method, the style is not applied; instead the contents of the element are dumped to the document. The attached .doc shows some example WORD output. The attached .txt shows the corresponding raw HTML inserted into the document via the builder.InsertHTML() method.

We are wondering if

  1. Applying embedded HTML styling( for HTML tables) is possible in aspose.words
  2. Whether this capability is present in v6 .0 .0 or a later version
  3. If so, how do we go about inserting the table styles

Regards,

Michael

Hi Michael,

Thanks for your request. Unfortunately, Aspose.Words does not support CSS styles applied on table, tr and td elements on HTML import. Your request has been linked to the appropriate issue. You will be notified as soon as this feature is supported.
Best regards.

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

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