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

Free Support Forum - aspose.com

Some style is not rendered in HTML input

Hi,
When I try to create a Workbook using an HTML input, the Italic style is not rendered.
Example:

    final String html = "<p><i>Some text</i></p>";
    final HTMLLoadOptions opts = new HTMLLoadOptions();
    opts.setAutoFitColsAndRows(true);
    opts.setDeleteRedundantSpaces(true);
    final byte[] btsHtml = html.getBytes(StandardCharsets.UTF_8);
    final ByteArrayInputStream baisHtml = new ByteArrayInputStream(btsHtml);
    // Create workbook from HTML string
    final Workbook wb = new Workbook(baisHtml, opts);
    wb.save(some_path);

Kind regards,
Hugo Freixo

@Hugo_Freixo,

We were able to observe the issue but we need to look into it more. We have logged the issue in our database for investigation and for a fix. Once, we will have some news for you, we will update you in this topic.

This issue has been logged as

CELLSJAVA-42797 - Some style is not rendered in HTML input

@Hugo_Freixo,

This is to inform you that we have fixed your issue (logged earlier as “CELLSJAVA-42797”) now. We will soon provide you the fixed version after performing QA and incorporating other enhancements and fixes.

The issues you have found earlier (filed as CELLSJAVA-42797) have been fixed in Aspose.Cells for Java 19.1. You can also get the latest Aspose.Cells for Java version from Maven repos. with simple configurations. Please see the document for your reference: https://docs.aspose.com/display/cellsjava/Installation

This message was posted using BugNotificationTool from Downloads module by Amjad_Sahi