title: Apache POI Excel: Page setup Align with page margins
body: <p>I have Apache POI API for Excel file manipulation. Excel file is generated from Jasper Report. Generated Excel from Jasper Report is fine. What I want is some additional things which Jasper Report do not support. Like adding print page setup - Header and Footer thing. I have ignored border margins on each Excel pages. But when I add header and footer, they are printed with some margin. Then observed that there is a checkbox on Page Setup page on MS Excel. </p>
  
  <p><a href="https://i.stack.imgur.com/JcfaC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JcfaC.png" alt="enter image description here"></a></p>
  
  <p>Here <code>Align with page margins</code> checkbox controls margin on Header and Footer. If this checkbox is checked then it will have same margin as excel page.</p>
  
  <p><strong>Question:</strong> How can I control this checkbox field from Apache POI?</p>