Başlıkları İle Excel i HTML e Dönüştürme
Contents
[
Hide
]
Başlıkları İle Excel’i HTML’e Dönüştürme
Aspose.Cells, Excel’i HTML’e dönüştürürken başlıkları dışa aktarma seçeneği sağlar. Bunun için HtmlSaveOptions.ExportHeadings özelliğini true olarak ayarlayabilirsiniz. HtmlSaveOptions.ExportHeadings özelliğinin varsayılan değeri false‘dir. Aşağıdaki görüntü, aşağıdaki kod tarafından oluşturulan çıktı dosyasını göstermektedir.
Örnek Kod
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-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); |