Material-table: Add print feature

Created on 7 Aug 2018  路  13Comments  路  Source: mbrn/material-table

Users can print table data

enhancement

Most helpful comment

I would also be interested in this functionality for a few apps I'm working on. Users don't always like an extra step. 馃槉

All 13 comments

no need for now.

Are there any plans to add this feature?

@Bulletninja i may add this feature. But currently i need to work on more important issues.

why do you close the issue? shouldn't it be open to be addressed?

Hi @aramkoukia ,

Because it has a export feature. Users could use export feature for printing.

I would also be interested in this functionality for a few apps I'm working on. Users don't always like an extra step. 馃槉

I would also like this feature.

+1

its very easy to add print option just install below package.
https://www.npmjs.com/package/react-to-print

then follow below image
Capture1
Capture2

@therohitjha it's not that simple, the way you're showing only prints the data that's your screen is showing, imagine that you have more than 100 rows and you need to print all the data, do you have a solution for that?
i left a issue with this scenario on react-to-print with this situation:
https://github.com/gregnb/react-to-print/issues/206

@therohitjha it's not that simple, the way you're showing only prints the data that's your screen is showing, imagine that you have more than 100 rows and you need to print all the data, do you have a solution for that?
i left a issue with this scenario on react-to-print with this situation:
gregnb/react-to-print#206

were you able to find solution for this issue?

@therohitjha it's not that simple, the way you're showing only prints the data that's your screen is showing, imagine that you have more than 100 rows and you need to print all the data, do you have a solution for that?
i left a issue with this scenario on react-to-print with this situation:
gregnb/react-to-print#206

were you able to find solution for this issue?

I'm also kinda looking for something similar, although my use case is a little different. I am adding as a column, and would like to pass specific data into the content prop. Any ideas? Unfortunately, I am a little lost when it comes to react refs.

@rizabek-mukanov Sorry for late response, i only saw this now
Yes i did, i found out that my problem was the maxBodyHeight, if i remove it, react-to-print was able to print all data

Was this page helpful?
0 / 5 - 0 ratings