javad
javad

Reputation: 835

Visible objects in crystal report

I have a report like this:

enter image description here

I want to hide some example values ​​of 2 and 4

Also, I do not want my report to display in this format:

enter image description here

I want to be displayed in this format:

enter image description here

How do I do it?

instance of my report in visual studio:

enter image description here

Upvotes: 0

Views: 1731

Answers (1)

Siva
Siva

Reputation: 9101

write a supress condition for 2 and 4.

Assuming you have placed in details section:

go to supress part of the Crystal Report.

if (column=name2) or (column=name4)
then true
else false

let me know if this not your requirement.

Edit................................................................................

You have two options:

  1. Create 100 detail sections and supress the detail section that is not necessary.

  2. Create 100 formulas and by using If Else condtions write 100 columns in each formula and create parameter for selection of which columns need to be displayed and by using that parameter control the display of values.

    if({parameter}="name")   //first formula
    then "name"
    else if ({parameter}="family")
    then "family"
    
    ..
    ..
    ..
    

This way create 100 formulas...control the display.

Upvotes: 2

Related Questions