Closed Trikcode closed 12 months ago
Hello, could you please complete the code snippet? I can only find limited information to identify the problem from this incomplete code snippet.
Of course, it would be best to provide a Codesandbox or stackblitz example.
Here is the code distribution in my two components
only data contained in the Table component is displayed on print preview, for the first screenshot i shared (i was testing on small table data and it was doing the same)
i don't think this was the best fix but it worked for me (wraping the component in a table tag
`
</div>`
Hi @Trikcode
I suspect that there is CSS in your project that hides elements that are not wrapped in a table element when printing. You can enable print preview mode in Chrome's console to help identify the problem (https://stackoverflow.com/a/29962072).
When i print, data inside the table is displayed in the print preview but data out side is not for example this line is not displayed
<h2 style={{ color: "green" }}>Attendance</h2>