Sheet Name not rendered in HTML when only one sheet

Hi,

When I save As HTML an Excel file with one sheet ( OneSheet.xlsx ), the name of the sheet is not rendered and not displayed in the HTML ( Onesheet.html ). This only works when there are 2 or more sheets in the Workbook ( TwoSheets.xlsx ==> TwoSheets.html ).

Done with Aspose.Cells version 19.9.0.0

You can see the result in the “screen_shot.png”

How can I do to display the sheet name when there is only one sheet in the workbook ?

Thanks.

All the elements in the zip file.files.zip (65.2 KB)

@julien.mevel.isilog,

Thanks for the template file and details.

Please try the following sample code to accomplish your task (Sheet tab will be rendered):
e.g
Sample code:

Workbook workbook = new Workbook("e:\\test2\\OneSheet.xlsx");

            HtmlSaveOptions options = new HtmlSaveOptions();
            options.ExportSingleTab = true;

            workbook.Save("e:\\test2\\out1.html", options);

Hope, this helps a bit.