Converti Excel in HTML con intestazioni

Converti Excel in HTML con intestazioni

Aspose.Cells offre la possibilità di esportare le intestazioni durante la conversione di Excel in HTML. Per questo, è possibile impostare ilHtmlSaveOptions.ExportHeadings proprietà aVERO. Il valore predefinito diHtmlSaveOptions.ExportHeadings la proprietà èfalso. L’immagine seguente mostra il file di output generato dal codice seguente.

cose da fare:immagine_alt_testo

Codice d’esempio

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