Konvertera Excel till HTML med rubriker
Contents
[
Hide
]
Konvertera Excel till HTML med rubriker
Aspose.Cells ger möjlighet att exportera rubriker samtidigt som Excel konverteras till HTML. För detta kan du ställa inHtmlSaveOptions.ExportHeadings egendom tillSann. Standardvärdet förHtmlSaveOptions.ExportHeadings egendom ärfalsk. Följande bild visar utdatafilen som genereras av följande kod.
Exempelkod
This file contains 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
// 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); |