Force Print to Landscape Using React Material UI and JSS

Viewed 61

I need to force to print to landscape in Material UI. The problem is this code doesn't work

'@page': { size: 'landscape' },

const useStyles = makeStyles((theme) => ({
    root: {
        // '@page': { size: 'landscape' },
        '& .printIconButton': {
          display: 'none',
        },
        '& h4': {
          display: 'none',
        },
      },
    },
  }));
0 Answers
Related