Excel dosyasını HTML'e Kaydederken Yorumları Dışa Aktar
Contents
[
Hide
]
Olası Kullanım Senaryoları
Excel dosyanızı HTML’e kaydettiğinizde yorumlar dışa aktarılmaz. Ancak Aspose.Cells, bu özelliğiHtmlSaveOptions.IsExportCommentsEmlak. eğer ayarlarsandoğruardından HTML, Excel dosyanızda bulunan yorumları da görüntüler.
Excel dosyasını Html’ye kaydederken Yorumları Dışa Aktar
Aşağıdaki örnek kod, kullanımını açıklarHtmlSaveOptions.IsExportComments Emlak. Ekran görüntüsü, özellik olarak ayarlandığında kodun HTML üzerindeki etkisini gösterir.doğru. Lütfen indirinörnek excel dosyasıveHTML oluşturuldureferans için
Basit kod
This file contains hidden or 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 sample Excel file | |
Workbook wb = new Workbook(srcDir + "sampleExportCommentsHTML.xlsx"); | |
// Export comments - set IsExportComments property to true | |
HtmlSaveOptions opts = new HtmlSaveOptions(); | |
opts.setExportComments(true); | |
// Save the Excel file to HTML | |
wb.save(outDir + "outputExportCommentsHTML.html", opts); |