react-to-print icon indicating copy to clipboard operation
react-to-print copied to clipboard

Override or disable browser tool bar print trigger

Open kmaheshgit opened this issue 2 years ago • 1 comments

I am using react to print for printing my component , however when the user clicks on print button in browser's tool bar its printing the entire page instead of the component which I wanted to render. Is there any way to avoid the same ?

kmaheshgit avatar Oct 07 '22 03:10 kmaheshgit

Hello. react-to-print can't override the browser functionality unfortunately. If you find your users using the browser's print often the best option would be to make sure your entire page looks good when printing using @media print CSS queries

MatthewHerbst avatar Oct 07 '22 04:10 MatthewHerbst