Export single row to custom pdf

Export single row to custom pdf

carrarachristophecarrarachristophe Posts: 109Questions: 25Answers: 2

Hello,
Using buttons, I am able to export the data of 1 or several rows in several formats, but it exports a table.
What I am trying to do is exporting the data of a single row of the datatable into a custom pdf document.
For example, selecting a row of a datatable listing invoices, I would like to generate an invoice in pdf containing all the data related to the selected row, but in a specific design.
I don't find any example of anything close to that, although I find that need quite common.
Does anybody work on that direction?

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 21,315Questions: 26Answers: 4,948
    Answer ✓

    If you are using the Select extension the export function should default to exporting the selected rows. See this example for details.

    The pdfHtml5 documents how to customize the PDF export. Likely you will need to use the customize function and refer to the PDFMake docs for your custom formatting.

    Kevin

  • carrarachristophecarrarachristophe Posts: 109Questions: 25Answers: 2

    Thanks Kevin.
    I will look at the PDFMake docs

Sign In or Register to comment.