Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated react-datatable values to pdf? #60

Open
rizalamhadi opened this issue Nov 3, 2020 · 5 comments
Open

Generated react-datatable values to pdf? #60

rizalamhadi opened this issue Nov 3, 2020 · 5 comments

Comments

@rizalamhadi
Copy link

how to generate values from table to pdf?

@ashvin27
Copy link
Owner

ashvin27 commented Nov 4, 2020

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

@ashvin27
Copy link
Owner

@rizalamhadi is this helpful for you?

@rizalamhadi
Copy link
Author

only excel can be downloaded, pdf and other not working.

@ashvin27
Copy link
Owner

@rizalamhadi Which type of issue you are facing while generating PDF. Can you please share issue details or code snippet.

@mkikets99
Copy link

mkikets99 commented Feb 8, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants