react-datatable
react-datatable copied to clipboard
Generated react-datatable values to pdf?
how to generate values from table to pdf?
To download your table as PDF you have enable PDF button table config as below:
this.config = { button: { excel: true, print: true, csv: true } }
in config inside button set print to true
@rizalamhadi is this helpful for you?
only excel can be downloaded, pdf and other not working.
@rizalamhadi Which type of issue you are facing while generating PDF. Can you please share issue details or code snippet.
Which type of issue you are facing while generating PDF. Can you please share issue details or code snippet.
I can help Used: React: ^17.0.1 NodeJS: 14.15.4 LTS OS: Linux Fedora 33 Browser: Microsoft Edge Dev Branch (Chromium) Results: Print button shows new page but no results (automaticly closes)
Browser: Firefox 85.0 Results: Shows new page and opens print window (on linux)
Browser: Chromium Version 88.0.4324.96 (Developer Build) Fedora Project (64-bit) Results: Called print page
So it can be either edge or i don`t know