e ai pessoal!!!
estou fazendo um sistema WEB que exporta dados em PDF.
fiz o seguinte codigo:
...
List list = new PedidoAutorizacaoDAO().select();
JasperReport detailReport = (JasperReport) JasperCompileManager.compileReport("C:/eclipse/workspace/apae/pages/report/pedidoautorizacao.jrxml");
JasperPrint detailPrint = JasperManager.fillReport(detailReport, null, new JRBeanCollectionDataSource(list));
JasperViewer detailViewer = new JasperViewer(detailPrint, false);
detailViewer.show();
JasperExportManager.exportReportToPdfFile(detailPrint, "C:/teste.pdf");
...
e quando executo dá o erro:
java.lang.NoSuchMethodError: com.lowagie.text.pdf.PdfContentByte.transform(Ljava/awt/geom/AffineTransform;)V
at net.sf.jasperreports.engine.export.JRPdfExporter.exportText(JRPdfExporter.java:1584)
at net.sf.jasperreports.engine.export.JRPdfExporter.exportPage(JRPdfExporter.java:458)
at net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:398)
at net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:265)
at net.sf.jasperreports.engine.JasperExportManager.exportReportToPdfFile(JasperExportManager.java:127)
at Teste.main(Teste.java:45)
Exception in thread “main”
o relatorio é executado normalmente porem nao exporta…