ExcelファイルをHTMLに保存しながらコメントをエクスポートする

考えられる使用シナリオ

Excel ファイルを HTML に保存すると、コメントがエクスポートされません。ただし、Aspose.Cells は、HtmlSaveOptions.IsExportComments財産。設定すれば真実、次に HTML は、Excel ファイルに存在するコメントも表示します。

ExcelファイルをHTMLに保存しながらコメントをエクスポートする

次のサンプル コードは、HtmlSaveOptions.IsExportComments財産。スクリーンショットは、HTML に設定されている場合のコードの効果を示しています。真実 .をダウンロードしてくださいサンプル Excel ファイルそしてその生成された HTML参考までに。

todo:画像_代替_文章

サンプルコード

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