在将Apache从3.17更新到4.0.0之后,我将在线:
OPCPackage pck = OPCPackage.open(this.getTemplate());
例外情况:
java.lang.IllegalArgumentException: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized.
at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.setAttribute(Do
我得到了一个
java.lang.SecurityException: class "org.apache.poi.POIXMLDocument"'s signer information does not match signer information of other classes in the same package
在BIRT核心jar和Apache之间,
在bug报告中已经指出,这可以通过升级BIRT来解决,但是当我这样做的时候,我遇到了另一个运行时的错误,它只能通过降级来解决。因此,从现在的情况来看,我在这里有点吃力。说我应该能够解压缩apache,删
我试图注销以帮助查找错误,但是使用不会记录任何内容,我希望控制台中会发生一些事情。
System.setProperty("org.apache.poi.util.POILogger", "org.apache.poi.util.SystemOutLogger");
System.setProperty("poi.log.level", POILogger.INFO + "");
/*...
some more code
...*/
case Cell.CELL_TYPE_FORMULA:
我正在使用apache poi打开一个现有的excel文件。
public static int generateReport(Calendar csdate,Calendar cedate) throws Exception
{
FileInputStream fileIn =null;
FileOutputStream fileOut = null;
int sum=0;//For calculating the total number of tickets
final Workbook wb;
fileIn =new FileInputSt
我犯了这样一个错误。它与依赖性有关吗?怎么解决这个问题呢?
java.lang.IllegalArgumentException: Property 'http://javax.xml.XMLConstants/property/accessExternalSchema' is not recognized.
at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.setAttribute(Unknown Source) ~[xercesImpl-2.12.1.jar:na]
at org.apache.poi.util.XML
我知道这个问题经常被问到,但是找不到合适的解决方案。使用时
XWPFDocument xdoc = new XWPFDocument(srcFile);
或
XSSFWorkbook workbook = new XSSFWorkbook(srcFile);
我总是以下面的错误结束:
Exception in thread "main" java.lang.IllegalAccessError: tried to access method org.apache.poi.util.POILogger.log(ILjava/lang/Object;)V from class or
我有一个xlsm文件,其中很少有单元格提供来自3个表的累积结果。 但是,有时只有1个表具有值,其余2个表为空。 因此,当我在Apache poi中对累积结果表运行公式求值时,我得到了求值异常,因为剩下的两个表中的值是空的。 示例 Cumulative cells D1, E1
D1 = CustomFunction(A1,B1)
E1 = IF(A1+B1+C1=0, do something)
/*
CustomFunction definition is added in a class which implements FreeRefFunction and added to wor
我试着使用中的例子,但是我得到了异常,比如。
java.lang.IllegalArgumentException: Failed to fetch default style for otherStyle and level=0
at org.apache.poi.xslf.usermodel.XSLFTextParagraph.getDefaultMasterStyle(XSLFTextParagraph.java:1039)
at org.apache.poi.xslf.usermodel.XSLFTextRun.fetchCharacterProperty(XSLFTe
现在,我想在两个现有行之间插入一个空行(我已经查看了,但我遇到了一些奇怪的错误)。
因此,我尝试通过这样做来移动行:
worksheet.shiftRows(15,16,2);
我得到的回报是:
Exception in thread "main" java.lang.RuntimeException: not implemented yet
at org.apache.poi.xssf.usermodel.XSSFEvaluationWorkbook.getExternalSheetIndex(XSSFEvaluationWorkbook.java:127)
我被分配了现有项目的更新。以前的开发人员使用jcom api将数据导出到excel工作表。但是jcom api不适用于64位系统。我决定更改代码并使用apache poi api。我设法做了很多方法。我的问题是数组公式。我需要使用apache poi实现数组公式。这些公式张贴在下面,任何帮助都会更有价值。提前谢谢各位。
公式:
String formula1 = "SUM(R[-2]C/1.200)";//net income calculation from gross income
String formula2 = "SUM(R[-1]C-R[1]C)
我用的是POI3.7,上传的文件是.xlsx
控制台显示:
org.apache.poi.POIXMLException: org.apache.poi.openxml4j.exceptions.InvalidFormatException: Package should contain a content type part [M1.13]
at org.apache.poi.util.PackageHelper.open(PackageHelper.java:41)
at org.apache.poi.xssf.usermodel.XSSFWorkbook.<init
我要使用POI setCellFormula将公式设置为单元格,该公式来自excel加载项,但当前未安装。在此之后,我将把excel转移到安装了插件的PC上,以评估公式。
但是,当我尝试使用setCellFormula设置公式时,我得到了一个异常:
在org.apache.poi.ss.formula.FormulaParser.function(FormulaParser.java:918) at org.apache.poi.ss.formula.FormulaParser.parseNonRange(FormulaParser.java:556) at org.apache.poi.ss