Aspose.Cells for .NET 8.1.2 发布,此版本包括一些有用的特性和其他改进(20 个 bug 修复)。如果用户需要升级,请先查看 Public API Changes。 此版本最主要的特性改进是字体替换时会有通知提醒:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | public class WarningCallback : IWarningCallback
{
public void Warning(WarningInfo info)
{
if (info.WarningType == WarningType.FontSubstitution)
{
Debug.WriteLine( "WARNING INFO: " + info.Description);
}
}
}
void Run()
{
Workbook workbook = new Workbook( "source.xlsx" );
PdfSaveOptions options = new PdfSaveOptions();
options.WarningCallback= new WarningCallback();
workbook.Save( "output.pdf" , options);
}
|
同时也解决了在把 Excel 文件写入到 PDF 和 ODS 时发生的异常。
其他改进:
此版本现已提供下载,更多更新内容请看这里。
Aspose.Cells 是一个可以在不需要微软 Excel 环境下对 Excel 电子表格文件进行读写的 Java 组件。支持创建电子表格、打开加密 Excel 文件、宏、VBA、Unicode、公式设置、数据透视表等功能,支持从 JDBC、CSV、SpreadsheetML、PDF、ODS 中导入数据,支持 Excel 97 到 Excel 2007.
概览:

|