Convert Excel to HTML with headings

Convert Excel to HTML with headings

Aspose.Cells for Python via NET provides the option to export headings while converting Excel to HTML. For this, you may set the HtmlSaveOptions.export_row_column_headings property to true. The default value of HtmlSaveOptions.export_row_column_headingsproperty is false. The following image shows the output file generated by the following code.

todo:image_alt_text

Sample Code

from aspose.cells import HtmlSaveOptions, Workbook
# For complete examples and data files, please go to https:# github.com/aspose-cells/Aspose.Cells-for-.NET
# Load sample source file
workbook = Workbook(sourceDir + "Book1.xlsx")
options = HtmlSaveOptions()
options.export_row_column_headings = True
# Save the workbook
workbook.save(outputDir + "PrintHeadings_out.html", options)