Converti Excel in HTML con intestazioni

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.

todo:image_alt_text

Codice di Esempio

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)