title: Hide Header Section After Last Record
body: <p>I have a crystal report, whenever I reach the last record, it will print another extra page together with the header.
  see the attachment below:
  <a href="https://i.stack.imgur.com/Lr2NS.png" rel="nofollow noreferrer">this is extra page, always appear together with the header section after last record</a></p>
  
  <p>I applied formula to the Detail Section and Header Section at the supress.</p>
  
  <p>Detail Section:
  <code>WhilePrintingRecords;
  Global BooleanVar finished;
  finished :=  OnLastRecord</code></p>
  
  <p>Header Section:</p>
  
  <pre><code>Global BooleanVar finished
  </code></pre>
  
  <p>It seems working for the layout, but when the extra page is not printed, 
  1) my last record is not appear (let say i have 51 records, 
  only 50 records is printed)
  <a href="https://i.stack.imgur.com/Fot0O.png" rel="nofollow noreferrer">First Problem after applying formula</a></p>
  
  <p>2) If I have only one record, the next page still appear</p>
  
  <p>Is there any correction can be apply on my formula, or im applying a wrong formula for it?</p>