Greetings! I have seen this tecnique used previously.
First: Create parameter ‘Columns to be suppressed’; All the column headers need to be added in the parameter field.
Create a formula called ‘display_Columns to be suppressed’ and edit the following as needed:
If {?Columns to be suppressed} = “All”
Then “All”
Else {?Columns to be suppressed} [1] +
If Count({?Columns to be suppressed}) > 1
Then “, “ + {?Columns to be suppressed} [2] +
If Count({?Columns to be suppressed}) > 2
Then “, “ + {?Columns to be suppressed} [3] +
If Count({?Columns to be suppressed}) > 3
Then “, “ + {?Columns to be suppressed} [4] +
.
.
.
If Count ({?Columns to be suppressed}) > 9
Then “, “ + {?Columns to be suppressed} [10];
Then in the Column Header, Format text, add the following text to the Suppress formula:
Instr((@display_Columns to be suppressed), ‘enter Column Header here’) > 0;
Then in the Detail Field, Format text, add the following text to the Suppress formula:
Instr((@display_Columns to be suppressed), ‘enter Detail Field here’) > 0;
Just resharing...Thanks!
James Keep, PMP
Crystal Reports(tm) Certified Consultant 8.5 (CRCC)
Authorized Crystal Engineer (ACE)
CMRC
Crystal Decisions Business Partner
Montreal, Qc, Canada