Export excel to html with conditional formatting white background

Hi there,

I have an excel which contains conditional formatting in its cells.
Using the following code with Aspose.Cells v23.6 I export it as html

  private static HtmlSaveOptions _htmlSaveOptions =>
        new()
        {
            ExportImagesAsBase64 = true,
            ExportPrintAreaOnly = true,
            ExportHiddenWorksheet = false,
            ExcludeUnusedStyles = true,
            ExportActiveWorksheetOnly = true,
            Encoding = Encoding.UTF8
        };

    public static void ExportHtml()
    {
        Workbook wbc = null;
        using (FileStream ms = new FileStream(@"C:\demo-projects\aspose-html\input.xlsx", FileMode.Open))
        {
            wbc = new Workbook(ms, new LoadOptions(LoadFormat.Xlsx));
        }

        var worksheet = wbc.Worksheets[0];
        using var html = new MemoryStream();
        wbc.Save(html, _htmlSaveOptions);
        File.WriteAllBytes(@"C:\demo-projects\aspose-html\output-23.6.html", html.ToArray());
        wbc.Save(@"C:\demo-projects\aspose-html\output-23.6.xlsx", SaveFormat.Xlsx);
    }

There’s a regression from Aspose.Cells v23.5:
In the output html, cells containing conditional formatting have a white background around them, which is not the styling in the original excel.

Attached is a zip file containing:

  1. input.xlsx - original input file.
  2. output-23.6 - html output using Aspose.Cell 23.6
  3. output-23.5 - html output using Aspose.Cell 23.5

input.zip (108.8 KB)

Thanks,

Shlomi

@shlomi.z
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): CELLSNET-53539

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

Hi @eduardo.canal,

As this issue a regression, and we had to revert Aspose.Cells to 23.5, when is a fix expected to be deployed?

@shlomi.z
Sorry for causing you trouble.
We will handle your issue as soon as possible.

Hi @simon.zhao,

Any updates on this one?
We are still working with 23.5 as 23.6 has some regressions.
Our clients our waiting for an update on several promised features.

Thanks in advanced,

Shlomi

@shlomi.z,

Your issue is not resolved yet but hopefully it will be fixed soon. We will try to include the fix in the next official release of the APIs (Aspose.Cells for .NET v23.7, expected in the second week of July, 2023).

You will be notified once we figure it out or we have some other updates available.

@shlomi.z,

This is to inform you that your issue has been resolved. The fix will be included in an upcoming release (Aspose.Cells v23.7) that we plan to release in the first half of July 2023. You will be notified when the next version is released.
Here is the generated file after fix for your reference:fix.zip (12.5 KB)

The issues you have found earlier (filed as CELLSNET-53539) have been fixed in this update. This message was posted using Bugs notification tool by johnson.shi