Convert Excel to HTML with headings

Convert Excel to HTML with headings

Aspose.Cells provides the option to export headings while converting Excel to HTML. For this, you may set the HtmlSaveOptions.ExportHeadings property to true. The default value of HtmlSaveOptions.ExportHeadings property is false. The following image shows the output file generated by the following code.

todo:image_alt_text

Sample Code

// 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);