Java 中 APOSE.CELLS 的问题

Issue with APOSE.CELLS in Java

我正在使用 ASPOSE.CELLS 对 excel sheet 进行排序,但在尝试保存工作簿时出现异常。问题是什么?该代码还生成损坏的 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)

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

这是一个 link 到 Aspose.Cells 的论坛

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

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

我安装了 ASpose.cells Eclipse IDE 的 Maven 插件,它现在工作得很好。