HEader and Footer is not Working in Print

When I click on print, the header and footer are missing, and the footer is in the wrong position, not at the bottom of the page.

when click the print

Ensure that the “Headers and Footers” option is checked.