Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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


So, if I understand correctly, you will be suppressing specific sections of the report, not changing the groups around.  Is that correct?

If you set up a parameter (I'll call it {?ShowSections}) that will take the values 1, 2, and 3, here's what you'll do in the report:

NOTE:  You'll be working in the suppression formulas.  DO NOT check the "Suppress" check box for any of these sections.

- Go to the Section Expert.

- For the Part group footer, use this formula:  {?ShowSections} = 3

- For the section where the overall summary is located, use this formula:  {?ShowSections} = 1

This should get you what you're looking for.


0 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question