Aspose.Cells export to HTML - regression width issue

Seems like we have a regression issue between 25.1.2 version and 2025.2 , 2025.3.
We are using the following code to save a named range to html.

using Aspose.Cells;
using System;
using System.Text;

class Program
{
    static void Main()
    {        
        Workbook workbook = new Workbook("Aspose1_For Dynamic Range Drill Down.xlsx");
        
        var range = workbook.Worksheets.GetRangeByName("DR_PUBv2__1660651290");        
        var worksheet = workbook.Worksheets["Sheet1"];
        
        worksheet.PageSetup.PrintArea = range.Address;

        // Save the named range as HTML
        HtmlSaveOptions options = new HtmlSaveOptions
        {
            ExportImagesAsBase64 = true,
            ExportPrintAreaOnly = true,
            ExportHiddenWorksheet = false,
            ExcludeUnusedStyles = true,
            ExportActiveWorksheetOnly = true,
            Encoding = Encoding.UTF8
        };
        
        workbook.Save("NamedRange.html", options);
    }
}

The ‘city’ column has a different width (larger in 2025.2) version. It currently breaks all excel previews. Could you please check? I attached the sample project with output files.
ConsoleApp25_3.zip (22.3 KB)

@eyalmolad,

After initial testing, I am able to reproduce the issue as you mentioned by using your template Excel file and sample code snippet. I found the “city” column has a different width (larger/extended width).

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-58145

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.

@eyalmolad,

We are pleased to inform you that your issue has been resolved. The fix will be included in an upcoming release (Aspose.Cells v25.4) that we plan to release in the first half of April 2025. You will be notified when the next version is released.
Here is the reuslt after fix for your reference: output.zip (3.2 KB)

1 Like