-
-
Notifications
You must be signed in to change notification settings - Fork 221
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
Print large amount of data #206
Comments
Hello. Could you please make a codesandbox or codepen that shows the problem? Thank you. My guess is it has to do with virtual rendering. |
Hello @MatthewHerbst, first of all thanks for the reply. The code might be a bit confuse but the most important code about react-to-print is located on files utils/m-table-toolbar, utils/material-table and utils/index |
If I had to guess, passing the ref via props is not updating the ref correctly, but I'm not sure. I wonder if a simpler example could be made with just mui-datatable and react-to-print? |
Infortunately i don't think i can make an easier example. I created a new codesandbox with both datatables imported but i left the material-table commented. |
@xStorm111 sorry for taking so long to get back to you. Does I'm taking another look at it. It should be fixable, but very difficult and will be hard to test it properly. |
@MatthewHerbst Hello, you don't have to be sorry for it. Makes sense that react-to-print reacts that way to a maxBodyHeight |
@xStorm111 interesting. I wonder if a solution would be for |
Hello, i'm trying to implement react-to-print on material-table and i'm having some issues for multiple page data.
Example:
I have this scenario where i have more rows than the window can show.
I implemented the code on material-table using gregnb/mui-datatable as an example.
But gregnb/mui-datatable print function reaches all data from tableContent and here i can only reach the tableContent that is displayed on the screen or less than that.
Expected Behavior
Print all data from table
The text was updated successfully, but these errors were encountered: