0

I call a method using dwr, where i l load a grid. That grid data must be generated in the form of a pdf.

LogsDataHandler.fetchEmailList(id1, id2, date1, date2,function(data){

}

the return data must be generated as a pdf. Any help ?

sahana
  • 601
  • 5
  • 12
  • 33

1 Answers1

0

You should try to export jqgrid to excel built: http://www.trirand.net/documentation/php/_32h0wojvn.htm

stackoverflow answer: JQGrid: Export Grid to PDF

examples: http://www.trirand.com/blog/phpjqgrid/examples/export/pdf/default.php http://www.trirand.com/blog/?page_id=393/help/export-to-excel-and-pdf/

Community
  • 1
  • 1
Gábor Plesz
  • 1,203
  • 1
  • 17
  • 28
  • I do not think so. It is worth a try. I tried the first link and I have downloaded PDF file. – Gábor Plesz Jun 07 '13 at 10:48
  • Plesz did you try with jsp jqgrid ? Inside the onclick function instead of "url" : "querygrid.php" what should i give ? – sahana Jun 10 '13 at 04:34
  • No, i opened the following link: http://www.trirand.com/blog/phpjqgrid/examples/export/pdf/default.php, clicked the print icon and PDF files are saved. The more I think of the example source code visible. – Gábor Plesz Jun 11 '13 at 11:00