Hi,
I have the following code which call the print window with window.print()
. In Chrome and Edge, it shows the print preview window but not in Firefox and IE11. Is there a way to make Firefox and IE11 to show the print preview window as well, or this is something that is browsers specific issue that can’t be solved by code?
const printOut = () => {
window.print();
}
This is the part of code which calls the printOut
return (
<>
<Button
variant="contained"
color="primary"
onClick={printOut}
>
{t('common.button.print')}
</Button>
)