JRPdfExporter

0
Hello EveryBody, We are encountering runtime error while exporting jasper file to pdf format following is the code net.sf.jasperreports.engine.export.JRPdfExporter exporter = new net.sf.jasperreports.engine.export.JRPdfExporter(); exporter.setParameter(JRPdfExporterParameter.JASPER_PRINT, jasperPrint); exporter.setParameter(JRPdfExporterParameter.OUTPUT_STREAM, output); exporter.setParameter(JRPdfExporterParameter.OUTPUT_FILE_NAME,"pdf file path name" ); exporter.exportReport(); following is the error at line --- exporter.exportReport(); java.lang.NoSuchMethodError: com.lowagie.text.pdf.PdfContentByte.transform(Ljava/awt/geom/AffineTransform; ) V net.sf.jasperreports.engine.export.JRPdfExporter.exportText(JRPdfExporter.java:1543) net.sf.jasperreports.engine.export.JRPdfExporter.exportElements(JRPdfExporter.java:549) net.sf.jasperreports.engine.export.JRPdfExporter.exportPage(JRPdfExporter.java:513) net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:478) net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:267) Thanks in advance, bye
nspl's picture
3
Joined: Oct 22 2006 - 11:36pm
Last seen: 8 years 1 week ago

2 Answers:

0
Is iText.jar in your classpath?
slaisne's picture
65
Joined: Nov 16 2006 - 4:11am
Last seen: 1 year 1 week ago
0
yes U R right We were using iText-0.99.jar in which there is no transform Method. Right know We are using iText-1.4.7.jar , which contains transform method(and this is the solution for this problem) Thanks a lot bye
nspl's picture
3
Joined: Oct 22 2006 - 11:36pm
Last seen: 8 years 1 week ago
Feedback
randomness