|
|
|
|
|
|
iReport
 
Project News
iReport 3.6.0 released!

iReport NB Release 3.6.0
September 3, 2009
--------------------------------------------------------------------------------
The iReport Team is pleased to announce the new iReport release: 3.6.0.
iReport is available as standalone application and as NetBeans plugin for NetBeans IDE 6.x. This version includes several improvements and bug fixes.

New features and changes:
- Updated to JasperReports 3.6.0
- Several bug fixes

Download
http://sourceforge.net/project/showfiles.php?group_id=64348

iReport plugin for NetBeans
http://plugins.netbeans.org/PluginPortal/faces/PluginDetailPage.jsp?pluginid=4425


Complete changelog
- Fixed bug 0003991 ClassPath Library for JasperReports netBeans plugin missing files.
- Fixed bug 0004216 iReport 3.5.3 image height set to 0 causes exception
- Fixed bug 0004270 "Code39(Extended)" vs. "Code39 (Extended)"
- Fixed bug 0004196 Missing Expression ID for Barcode Component
- Support for JasperReports 3.5.3
- Fixed subreport wizard
- Fixed bug 15662: "Transform in" should be "Transform to"


Posted by : giulioPosted on : 09/02/2009 09:30

Comments
vasanthgtn           (10/29/2009 10:51)   
Hi,
 I have used the code fragment mentioned below to view the report and export to PDFfile in  NetBeans 6.1 (the report is originally generated and compiled using iReport 3.6.0),my requirement is to export in to pdf using jsp application ,i have used the latest iText2.1.0 jar file in my application ,still i getting the exception , please help me .


code:

public class ReportServlet extends HttpServlet {
   Connection con;
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {      
        System.out.println("bb");
       
        ServletOutputStream servletOutputStream = response.getOutputStream();
       
           try {
                    Class.forName("org.postgresql.Driver");
            con = DriverManager.getConnection("jdbc:postgresql://localhost:5444/das", "postgres" , "postgres");

        } catch (Exception e) {
        }
      
       
       
       
        try {
  
        System.out.println("Calling .....");
           
        String home_path=System.getProperty("user.home");
        ServletContext ctx = getServletContext();
        String realpath_paydts=ctx.getRealPath("/Jasper");
             
        System.out.println("path :::"+realpath_paydts);
         Map parameters = new HashMap(); 
      
       
        parameters.put("fdate", new java.util.Date(10/10/2004));
        parameters.put("tdate", new java.util.Date(11/11/2009));
        parameters.put("cc_code", new String("1"));    
        parameters.put("fqty",new java.lang.Double(1.0d));
        parameters.put("tqty", new java.lang.Double(9.0d));   
       
        JasperReport jasperReport;
        JasperPrint jasperPrint;
        JasperDesign jasperDesign;
       
       
       
        try{
                                                                                                                           jasperDesign =JRXmlLoader.load(realpath_paydts+"/Datewisecollection.jrxml");                           
                                                        
                             jasperReport =JasperCompileManager.compileReport(jasperDesign);
                            
                                                 
                             jasperPrint = JasperFillManager.fillReport(jasperReport,parameters, con );                         
                             JasperViewer.viewReport(jasperPrint, false);                          
                            
                        JasperExportManager.exportReportToPdfFile(jasperPrint,home_path+"/
Datewisecollection.pdf");
                            
                                                       
        } catch(Exception ex) { }
         
                              servletOutputStream.flush();
                    servletOutputStream.close();
       
        }catch(Exception ex)
        {
            ex.printStackTrace();
        }
    }


Exeption :


javax.servlet.ServletException: Servlet execution threw an exception

root cause

java.lang.NoSuchMethodError: com.lowagie.text.pdf.PdfWriter.setRgbTransparencyBlending(Z)V
net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:480)
net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:379)
net.sf.jasperreports.engine.JasperExportManager.exportReportToPdfFile(JasperExportManager.java:122)
ReportServlet.processRequest(ReportServlet.java:104)
ReportServlet.doGet(ReportServlet.java:142)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)






   
 
 
FEATURED BLOG
I'm commonly asked this question in a variety of circles and on several continents.  I consider it one of the more interesting aspects of my job to have these types of predictive, future-oriented... MORE>
PROJECT NEWS
 
 
 
 
JasperForge Quotes
"Nice comparison of BIRT and JasperReports. Concludes JasperReports is better right now."
 
Founding Member, Open Solutions Alliance       Hot Jasper Projects on SOURCEFORGE.NET       Powered by EssentiaESP