Search code examples
c#asp.netcrystal-reports-2008subreports

How to display Subreport records in the first page of the Crystal Report?


I have created one Crystal Report with two Subreports. Here I included both the Subreports in the Detail Section. My first Subreport shows only one row. So it displays below the Header Section in the First Page. But the second subreport has 25 rows. So it displays in the second page not under the first subreport. If the second subreport has very few records(example. 5 rows) then the subreport is displaying in the first page. How to display the second subreport's records under the first subreport? Another issue is, My Header Section records are displaying in all the pages. From the second page onwards, I want to display only the subreport records. How to remove the Header section from the second page onwards? Is there any formula to do this? Thanks in Advance...


Solution

  • The issue you are having with your header section showing up on all pages is because you have this data in your page header, but you want to put that info on the report header.

    The default display of reports is:

    Report Header (first page only)

    Page Header (all pages)

    Details

    Report Footer (first page only)

    Page Footer (all pages)

    Clean up this issue first and then I believe your initial issue may resolve itself.