ExcelファイルをHTMLに保存しながらコメントをエクスポートする
Contents
[
Hide
]
考えられる使用シナリオ
Excel ファイルを HTML に保存すると、コメントがエクスポートされません。ただし、Aspose.Cells は、HtmlSaveOptions.IsExportComments財産。設定すれば真実、次に HTML は、Excel ファイルに存在するコメントも表示します。
ExcelファイルをHTMLに保存しながらコメントをエクスポートする
次のサンプル コードは、HtmlSaveOptions.IsExportComments財産。スクリーンショットは、HTML に設定されている場合のコードの効果を示しています。真実 .をダウンロードしてくださいサンプル Excel ファイルそしてその生成された HTML参考までに。
サンプルコード
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 Excel file | |
Workbook wb = new Workbook(sourceDir + "sampleExportCommentsHTML.xlsx"); | |
//Export comments - set IsExportComments property to true | |
HtmlSaveOptions opts = new HtmlSaveOptions(); | |
opts.IsExportComments = true; | |
//Save the Excel file to HTML | |
wb.Save(outputDir + "outputExportCommentsHTML.html", opts); |