We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Wrong export to html


we are having an issue on our service (docker that runs on Azure cloud as a kubernetes pod with Debian 11 OS.).
When we try to convert the name range DR_PUBv2__1648448656 in the sorce.xlsx we are having an issue with the formatting of cells N10, H10, N14, H14, N19 & H19

You can see that number is hidden behind red/green circle.

The code we run is below.
The source and the output are attached Html-Render-Docker.zip (24.1 KB)

Any ideas?


private HtmlSaveOptions HtmlSaveOptions =>
ExportImagesAsBase64 = true,
ExportPrintAreaOnly = true,
ExportHiddenWorksheet = false,
ExcludeUnusedStyles = true,
ExportActiveWorksheetOnly = true,
Encoding = Encoding.UTF8

worksheet.PageSetup.PrintArea = range.Address;
workbook.Worksheets.ActiveSheetIndex = worksheet.Index;

using var html = new MemoryStream();
workbook.Save(html, _htmlOptions););


Thanks for the sample file.

We have logged a ticket with an id “CELLSNET-51608” for your mentioned issue. It works fine though if we execute your sample with your template file on Windows. The ticket is logged as following:
CELLSNET-51608 - Number is hidden behind red/green circle when exporting Excel to HTML on docker (Azure cloud kubernetes).

We will look into the details of the issue. Once we have an update on it, we will let you know.


The output html file you shared is modified by other program after it is generated by Aspose.Cells.
It seems that the html file you shared is broken, e.g. style x89 is missing which is used by class='x89' for Cell H10.

Please share us the html file directly generated by Aspose.Cells(without modified by other program) with the sample source file and code you shared:

@Peyton.Xu - thank you for your replay, due to logistic issues, we’ll be able to provide this info only next week.

Will update the ticket when we’ll have the data.

Thank for your support


Please take your time to provide the resource file and other details. We will evaluate your issue once you provide the needful artifacts or file(s).

Sorry for the delay here,

We were finally managed to reproduce it.
please see the attached example, we exported to html the range of DR_PUBv2__1648448656
The attached html is a direct result from Aspose (no modification by “other program”).
This was reproducing also on my local machine.
export-html-example.zip (19.4 KB)

Please advise,


Thanks for the input Excel file output HTML.

I have logged your resource files with your existing ticket “CELLSNET-51608” into our database and reopened your issue again. We will look into the details of your issue and get back to you once an update is available.


Similar issue that style x73 is missing which is used by class='x73' for Cell H10, the output html may be modified after generated by Aspose.Cells.

To make things easier, please share us a standalone project with source file and code to reproduce the issue.