Excel管理控件Aspose.Cells开发者指南(十七):将Excel文件保存到HTML时导出注释


第四章:转换HTML

▲第一节:将Excel文件保存到HTML时导出注释

将Excel文件保存为HTML时,不会导出注释。但是,Aspose.Cells使用HtmlSaveOptions.IsExportComments  属性提供此功能  。如果将其设置为true,则HTML还将显示Excel文件中存在的注释。

下面的示例代码说明了HtmlSaveOptions.IsExportComments属性的用法。屏幕截图显示了将代码设置为true时,代码在HTML上的效果。

Excel管理控件Aspose.Cells开发者指南:将Excel文件保存到HTML时导出注释
//Load sample Excel fileWorkbook wb = new Workbook(sourceDir + "sampleExportCommentsHTML.xlsx");//Export comments - set IsExportComments property to trueHtmlSaveOptions opts = new HtmlSaveOptions();opts.IsExportComments = true;//Save the Excel file to HTMLwb.Save(outputDir + "outputExportCommentsHTML.html", opts);

还想要更多吗可以点击阅读【2019 · Aspose最新资源整合】查找需要的教程资源。如果您有任何疑问或需求,请随时加入Aspose技术交流群(),我们很高兴为您提供查询和咨询

标签:

声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2019年11月6日
下一篇 2019年11月6日

相关推荐

发表回复

登录后才能评论