내가 DynamicReports의 최신 버전을 사용하고, 나는 다음과 같은 오류가 점점 오전 : 나는이 JasperReportBuilder.toXlsx()
를 호출 할 때오류 사용 DynamicReports : java.lang.NoSuchFieldError : ELEMENT_GROUP_HEIGHT
Loading XML bean definitions from URL [jar:file:/home/diego.queres/Desenv/Java/Projetos%20Java/VAGAS/ProcessadorRelatoriosJasper/dist/run4454548/lib/dynamicreports-examples-4.1.1.jar!/net/sf/dynamicreports/examples/genericelement/openflashchart/openflashchart.xml]
java.lang.NoSuchFieldError: ELEMENT_GROUP_HEIGHT
at net.sf.dynamicreports.jasper.transformation.ConstantTransform.stretchType(ConstantTransform.java:1072)
at net.sf.dynamicreports.jasper.transformation.ComponentTransform.component(ComponentTransform.java:190)
at net.sf.dynamicreports.jasper.transformation.ComponentTransform.component(ComponentTransform.java:116)
at net.sf.dynamicreports.jasper.transformation.ComponentTransform.list(ComponentTransform.java:248)
at net.sf.dynamicreports.jasper.transformation.ComponentTransform.component(ComponentTransform.java:112)
at net.sf.dynamicreports.jasper.transformation.BandTransform.band(BandTransform.java:132)
at net.sf.dynamicreports.jasper.transformation.BandTransform.transform(BandTransform.java:58)
at net.sf.dynamicreports.jasper.transformation.JasperTransform.transform(JasperTransform.java:81)
at net.sf.dynamicreports.jasper.builder.JasperReportBuilder.toJasperReportDesign(JasperReportBuilder.java:269)
at net.sf.dynamicreports.jasper.builder.JasperReportBuilder.getJasperParameters(JasperReportBuilder.java:296)
at net.sf.dynamicreports.jasper.builder.JasperReportBuilder.toJasperPrint(JasperReportBuilder.java:307)
at net.sf.dynamicreports.jasper.builder.JasperReportBuilder.export(JasperReportBuilder.java:634)
at net.sf.dynamicreports.jasper.builder.JasperReportBuilder.toXlsx(JasperReportBuilder.java:607)
이 오류가 발생합니다.
내 소스 코드 :
JasperReportBuilder report = report();
List<TextColumnBuilder> lsColumns = getDRColumnsFromRecordset(rs);
for (TextColumnBuilder tcbColumn : lsColumns) {
report.addColumn(tcbColumn);
}
report.title(cmp.text("Title"));
report.pageFooter(cmp.pageXofY());
report.ignorePageWidth();
report.ignorePagination();
report.setDataSource(rs);
report.toXlsx(xlsxExporter); //throw error in this line