Search code examples
asp.netcrystal-reports-2008suppress

Crystal Report Page header suppress issue


I need to suppress the page header when there are no records in the detail section.I have used

onLastRecord

at page header->section expert->suppress.it works fine but issue is when there is only one record in the detail section.then page header is suppress how can i avoid this?


Solution

  • I think your question requires more detail.

    Anyway, based on what I have understood, I would suggest any of these ways to sort out this issue.

    1. Add a count() function formula to the suppress section. Find details here.
    2. Add a condition like OnLastRecord or {GROUP FIELD NAME} <> Next({GROUP FIELD NAME}). Find details here.

    3. Check for IsNull({table.field}) of a non-null field.

    4. Check whether the DisctinctCount of the PK field is null.