Convert Excel to HTML with headings
Contents
[
Hide
]
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.
Sample Code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |