Suppress Page header when there is no data in Details sections <p>I am using a datatable to load the data for the crystal report. Based on the data filtered by the user in the DataGridview and clicking on Print will display the filtered data in Report.</p> <p>All is fine.I have done this.When there is no data in the Details section I am suppressing it using the below formula in the suppress.</p> <pre><code>Shared NumberVar PageofLastField; If OnLastRecord then PageofLastField = PageNumber; </code></pre> <p>In the header section when there is no data in Details section supress page header.Below is the formula used.</p> <p>(Reference <a href="http://stackoverflow.com/questions/3294027/crystal-reports-suppress-a-page-header-if-the-page-has-0-records">Crystal Reports - Suppress a Page Header if the page has 0 records</a>)</p> <pre><code>Shared NumberVar PageofLastField; PageofLastField := PageofLastField; if pageofLastfield &lt;&gt; 0 and PageNumber &gt; PageofLastField THEN TRUE ELSE FALSE </code></pre> <p>Below is the image of the crystal report.<img src="https://i.stack.imgur.com/TUfk4.png" alt="enter image description here"></p> <p>When I click PRINT button in the front end. When there is no data in Details section the Page header is displayed.</p> <p>Below image is the Second page of the report where there are no records and summary is displayed.</p> <p><img src="https://i.stack.imgur.com/EriJW.png" alt="enter image description here"></p> <p>If in the header section if I use the below formula </p> <pre><code>OnLastRecord AND Count({PaymentReportTable.InvID}) &lt;&gt; 1 </code></pre> <p>In the Second Page even if the records are displayed Pageheader is not displayed.I understand it becos the formula says it all.</p> <p><img src="https://i.stack.imgur.com/Vs4rV.png" alt="enter image description here"></p> <p>I have created around 12 Crystal reports and I am facing the same problem in all of them.</p> <p>Please advice.</p>