Saving in html is not correct

Hi,

We do conversion to html, html shows incorrectly and table and columns are shifted to the right.

I am attaching html versions for different Aspose
In version 25.1.2 - html shows correctly
In version 25.5.0 - html does not show correctly
In version 25.6.0 - html does not show correctly

Now we are using 25.5.0 version of Aspose.Cells

HtmlSaveOptions options = new()
{
    ExportImagesAsBase64 = true,
    ExportPrintAreaOnly = true,
    ExportHiddenWorksheet = false,
    ExcludeUnusedStyles = true,
    ExportActiveWorksheetOnly = true,
    Encoding = Encoding.UTF8
};

var input = @"C:\input.xlsx";
var output = @"C:\output.html";

Workbook? wbc;
using (var ms = new FileStream(input, FileMode.Open))
    wbc = new Workbook(ms, new LoadOptions(LoadFormat.Xlsx));

var range = wbc.Worksheets.Names.First(x => x.Text == "test_html").GetRange();
var worksheet = range.Worksheet;
worksheet.PageSetup.PrintArea = range.Address;
wbc.Worksheets.ActiveSheetIndex = worksheet.Index;
using var html = new MemoryStream();
wbc.Save(html, options);
File.WriteAllBytes(output, html.ToArray());

for aspose.zip (26.4 KB)

@aleksandr.l,

Thanks for the template Excel file.

After initial testing, I am able to reproduce the issue as you mentioned by using your template file. I found saving in HTML format is not correct. HTML is shown incorrectly and table and columns are shifted to the right.

We require thorough evaluation of the issue. 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-58676

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.

@aleksandr.l ,
We are pleased to inform you that your issue has been resolved. The fix will be included in an upcoming release (Aspose.Cells v25.7) that we plan to release in the first half of July 2025. You will be notified when the next version is released.

Atthached is the result after the fix for your reference:
output.zip (4.2 KB)

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