Converti Excel in HTML con intestazioni
Contents
[
Hide
]
Converti Excel in HTML con intestazioni
Aspose.Cells per Python via NET offre l’opzione di esportare le intestazioni durante la conversione di Excel in HTML. Per fare ciò, è possibile impostare la proprietà HtmlSaveOptions.export_row_column_headings su true. Il valore predefinito della proprietà HtmlSaveOptions.export_row_column_headings è false. L’immagine seguente mostra il file di output generato dal codice seguente.
Codice di Esempio
This file contains hidden or 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) |