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)