Skip to Content

How to Programmatically suppress Groups in SAP Crystal Report

I am using SAP Crystal Report 2011 version RTM.

I have a report with multiple groups along with the column header and detail.

I would like to use 1 report to have 3 versions of the report where each version of the report has 1 or more groups suppressed and the other groups are not suppressed.

This report is being viewed in an ASP.Net page with as the code-behind.

Is there a way to tell the report from the code-behind what groups to suppress and what groups not to suppress?


Keith Jackson

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Nov 02, 2015 at 03:28 PM

    Yes and no.  What you would need to do is create a parameter that will indicate which groups to suppress or show.  You'll also set the group values based on the parameter so that if the group is being suppressed it will evaluate to some constant value or if it's being shown it will use whatever field or formula you need to group on.  You would then set the parameter in the code-behind in order to display the report.


    Add comment
    10|10000 characters needed characters exceeded