Menu

PDFExport with JasperReports

Help
2005-08-17
2012-10-08
  • Akram BEN AISSI

    Akram BEN AISSI - 2005-08-17

    Hello All,

    My application generate PDF reports with JasperReports.
    I want to plug the report generation with the PDF export of display tag. Do you have some recommendation ?

    Is there a simple way to do this ?
    JasperReports works with SQL Queries or ResultSet to generate its report. Is there a way to retrieve the result set, the HttpRequest or something else fron the displaytag export view ?

     
    • Matt Raible

      Matt Raible - 2005-08-17

      AFAIK, this is not possible. However, JasperReports is a pretty full-featured reporting engine - why can't you just create a report that exports to PDF? In my experience, JR gives you much more control over the look and feel of the report.

       
      • Akram BEN AISSI

        Akram BEN AISSI - 2005-08-17

        I have a JR that creates PDF reports. What I want to do is to generate this report using the data found in displaytag table.

         
        • Matt Raible

          Matt Raible - 2005-08-17

          How are you building the data to display in the displaytag table? Are you pulling it from your database? Is it the layout of the displaytag table you like, or the way it displays the data? Are you manipulating the data in a controller or JSP in ways that you can't manipulate it using SQL?

           
    • Christopher K Koenigsberg

      We are exporting a JasperReport PDF now, on demand, in a new window, from a row of an eXtreme table (from the properties of a single row bean, in the collection in session scope).

      It should work OK with displaytag too, I imagine, with only some minor changes.

       

Log in to post a comment.

MongoDB Logo MongoDB