Converti Excel in HTML con intestazioni

Converti Excel in HTML con intestazioni

Aspose.Cells fornisce l’opzione di esportare le intestazioni durante la conversione di Excel in HTML. Per fare ciò, è possibile impostare la proprietà HtmlSaveOptions.ExportHeadings su true. Il valore predefinito della proprietà HtmlSaveOptions.ExportHeadings è false. L’immagine seguente mostra il file di output generato dal codice seguente.

todo:image_alt_text

Codice di Esempio

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