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)