0

我正在使用 ASPOSE.CELLS 对 Excel 工作表进行排序,但在尝试保存工作簿时出现异常。问题可能是什么?该代码还会生成损坏的 Excel 工作簿。

Exception in thread "main" java.lang.NoSuchMethodError: sun.font.FontManager.getFontPath(Z)Ljava/lang/String;
at com.aspose.cells.a.c.cf.p(Unknown Source)
at com.aspose.cells.a.c.cf.<init>(Unknown Source)
at com.aspose.cells.b.a.b.g.<init>(Unknown Source)
at com.aspose.cells.b.a.b.g.<init>(Unknown Source)
at com.aspose.cells.ou.a(Unknown Source)
at com.aspose.cells.ou.a(Unknown Source)
at com.aspose.cells.ou.a(Unknown Source)
at com.aspose.cells.Worksheet.autoFitRow(Unknown Source)
at com.aspose.cells.jH.a(Unknown Source)
at com.aspose.cells.WorksheetCollection.r(Unknown Source)
at com.aspose.cells.WorksheetCollection.a(Unknown Source)
at com.aspose.cells.WorksheetCollection.b(Unknown Source)
at com.aspose.cells.WorksheetCollection.a(Unknown Source)
at com.aspose.cells.WorksheetCollection.a(Unknown Source)
at com.aspose.cells.Workbook.a(Unknown Source)
at com.aspose.cells.Workbook.save(Unknown Source)
at com.aspose.cells.Workbook.save(Unknown Source)
at AsposeDataSort.main(AsposeDataSort.java:67)
4

2 回答 2

0

该异常可能是由 Aspose.Cells 中的错误引起的,或者您正在加载的文件可能存在一些导致此异常的内部问题。请在 Aspose.Cells 论坛中发布您的问题。还向我们提供您在代码中使用的示例代码和源 excel 文件。

这是 Aspose.Cells 论坛的链接

http://www.aspose.com/community/forums/aspose.cells-product-family/19/showforum.aspx

注意:我在 Aspose 担任开发人员布道师

于 2016-06-20T01:48:46.257 回答
0

我为 Eclipse IDE 安装了 ASpose.cells Maven 插件,现在它就像一个魅力一样工作。

于 2016-06-20T19:52:26.630 回答