DisplayTag
  1. DisplayTag
  2. DISPL-292

Export to Excel, PDf y RTF doesn't export all the LIST

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: 1.1
    • Fix Version/s: 1.3
    • Component/s: Export
    • Labels:
      None
    • Application server:
      Tomcat 5.0.28

      Description

      When I use the Export utility and I code the line <display:setProperty name="export.excel.export_amount" value="list"></display:setProperty>, or I use the propertites, displaytag only exports the PAGE (10 records), not the LIST. but it only happens when I export to EXCEL, PDf y RTF.

      When I export to XML and CSV all runs fine (1604 records are exported).

      Any of you with the same problem ?

      Thx,
      Jaume
      1. DISPL-292-displaytag-patch.txt
        0.7 kB
        Jorge L. Barroso
      2. TableWriterTemplate.java
        22 kB
        Jonathan Gordon

        Activity

        Hide
        himanshu kakar added a comment -
        hii tere'
        i am having problem with exporting rtf.
        this export works, but i am not able to get the full list . i only get the data in the page, when i do export rtf. i am using displaytag1.2 jar and itext1.3 jar. My other export options work fine, only having problem with this rtf. So plz suggest me a solution. i have also set the export.amount in the displaytag.properties to list.but thn also this rtf didnt workd.
        so plzzz help me with full solution for this rtf export (to export the whole list)
        Thanx in advance
        Show
        himanshu kakar added a comment - hii tere' i am having problem with exporting rtf. this export works, but i am not able to get the full list . i only get the data in the page, when i do export rtf. i am using displaytag1.2 jar and itext1.3 jar. My other export options work fine, only having problem with this rtf. So plz suggest me a solution. i have also set the export.amount in the displaytag.properties to list.but thn also this rtf didnt workd. so plzzz help me with full solution for this rtf export (to export the whole list) Thanx in advance
        Hide
        Martin Irigaray added a comment -
        Are there any solutions for this problem?. How can i get the PDF exported with Captions and Footers and the full list ?. Thanks.
        Show
        Martin Irigaray added a comment - Are there any solutions for this problem?. How can i get the PDF exported with Captions and Footers and the full list ?. Thanks.
        Hide
        Martin Irigaray added a comment -
        Ok, i saw the problem is on class TableWriterTemplate, in the line RowIterator rowIterator = model.getRowIterator(false); Is calling always with false, that's why always use the page result. Insted of changing the source of displaytag, i copied the TableWriterTemplate and all the classes (export and render folder) that dependes on it, to my project and rename it. Then selected my new classes in the displaytag properties file. And changed the parameter for true.
        Show
        Martin Irigaray added a comment - Ok, i saw the problem is on class TableWriterTemplate, in the line RowIterator rowIterator = model.getRowIterator(false); Is calling always with false, that's why always use the page result. Insted of changing the source of displaytag, i copied the TableWriterTemplate and all the classes (export and render folder) that dependes on it, to my project and rename it. Then selected my new classes in the displaytag properties file. And changed the parameter for true.
        Hide
        Jonathan Gordon added a comment -
        The following works for me in development. Fix is to overload the writeTable method, adding a boolean which is passed to the getRowIterator method. I can also supply a patch if that's easier.
        Show
        Jonathan Gordon added a comment - The following works for me in development. Fix is to overload the writeTable method, adding a boolean which is passed to the getRowIterator method. I can also supply a patch if that's easier.
        Hide
        Jonathan Gordon added a comment -
        My comment above is in reference to the TableWriterTemplate.java file that I attached.
        Show
        Jonathan Gordon added a comment - My comment above is in reference to the TableWriterTemplate.java file that I attached.

          People

          • Reporter:
            Jaume Guillamon
          • Votes:
            7 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

            • Created:
              Updated: